Error in query: SELECT sub_id FROM newstyle.mod_meb_sub_gr WHERE cat_id = .ERROR: syntax error at end of input LINE 1: SELECT sub_id FROM newstyle.mod_meb_sub_gr WHERE cat_id = ^