ERROR: invalid input syntax for type date: ""
LINE 1: ...rom ewf.mahaboobnagar where torb = 'T' and dte ='' order b...
^
select id,title,etm,gst as story, h_poto as path, 'mahaboobnagar'::text as sitenm from ewf.mahaboobnagar where torb = 'T' and dte ='' order by id desc limit 1;