SQL: select group_name,gc_flag,source_name,l,b,nh3_objects.ra,nh3_objects.dec,vmean,vpeak,det,peak_3_3,peak_metastab,peak_5_5,peak_6_6,peak_7_7,peak_9_9,peak_12_12,line,type,refs,type,simbad_types from nh3_objects LEFT JOIN object_categories ON nh3_objects.group_name = object_categories.group_name_cat AND object_categories.tbl_cat = 'nh3_objects' LEFT JOIN assoc ON nh3_objects.group_name = assoc.grp AND assoc.tbl = 'nh3_objects' WHERE (((det ilike '%Y%' OR det ilike '%N%')) AND (refs ilike '%ZHA95%')) ORDER BY l,b