ERROR:  syntax error at or near "and"
LINE 1: ...as enam  from ewf.navachitram a where a.subtyp =  and a.id!=...
                                                             ^

select a.id,a.title,a.etm::date as etm ,a.h_poto1 as path, substr(a.story,1,300)  as story,  a.subtyp, '' as nam, 'Career' as enam  from ewf.navachitram a where a.subtyp =  and a.id!=676583  order by a.id desc limit 10