ERROR: syntax error at or near ";" LINE 1: Select count(distinct dte) as dt from ; ^
Select count(distinct dte) as dt from ;
ERROR: syntax error at or near "where" LINE 1: ...story, h_poto as path, ''::text as sitenm from where torb... ^
select id,title,etm,gst as story, h_poto as path, ''::text as sitenm from where torb = 'T' order by id desc limit 1;