TexCommand Error

Command:
	(
		[0 as col0, 0 as col1, ~deaths~ as col2, ~CGIURL=/cgi-bin/Index/IndexingBirth.cgi&SNAME=taylor&GNAME=naomi&FNAME=&MNAME=&EVENT=deaths&FRANGE=1930&TRANGE=1930&PLACE=&X=51&Y=12&~ as col3, ~~ as col4, ~~ as col5, ~~ as col6, ~~ as col7, ~~ as col8]
	)
union all
(

select regno as col0, regyr as col1, sname as col2, gname as col3, fname as col4, mname as col5, volume as col6, status as col7, district as col8 from  dind1914

where true
and 	sname contains ~taylor~
and 	gname contains ~naomi~
and regyr between 1930 and 1930

)
Error -292: Syntax error. (offset 29)