SQL: select group_name,gc_flag,source_name,l,b,h2o_objects.ra,h2o_objects.dec,vmean,vpeak,det,peak_22,rms_22,vspan_22,beam_min,type,refs,type,simbad_types from h2o_objects LEFT JOIN object_categories ON h2o_objects.group_name = object_categories.group_name_cat AND object_categories.tbl_cat = 'h2o_objects' LEFT JOIN assoc ON h2o_objects.group_name = assoc.grp AND assoc.tbl = 'h2o_objects' WHERE (((det ilike '%Y%' OR det ilike '%N%')) AND (refs ilike '%HUN99%')) ORDER BY l,b