ERROR:  invalid input syntax for integer: ""
LINE 1: select txt,id from ewf.category  where id=''
                                                  ^

select txt,id from ewf.category  where id=''

ERROR:  relation "ewf.story_" does not exist
LINE 1: select title from ewf.story_ where id='2165972'
                          ^

select title from ewf.story_ where id='2165972'

ERROR:  relation "ewf.story_" does not exist
LINE 1: ...ay,Month FMDD,IYYY') as etm,img_path as path from ewf.story_...
                                                             ^

select a.id,a.title,story,to_char(a.etm, 'FMDay,Month FMDD,IYYY') as etm,img_path as path from ewf.story_ a where a.id='2165972'