ERROR:  relation "ewf.story_" does not exist
LINE 1: ...from ewf.sub_category where id=sub_ctg) stxt from ewf.story_...
                                                             ^

select title,(select nam from ewf.sub_category where id=sub_ctg) scnam,(select txt from ewf.sub_category where id=sub_ctg) stxt from ewf.story_ where id::text=''

ERROR:  syntax error at end of input
LINE 1: ...IYYY') as etm,img_path as path from ewf.story_ a where a.id=
                                                                       ^

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=