SELECT FN_SY_CLASS_R01(A.sido_cls_cd,'CLASS_NM') as sido_nm
          , FN_SY_CLASS_R01(A.gugun_cls_cd,'CLASS_NM') as gugn_nm
          , A.comp_nm
          , A.comp_tel
          , A.ba_comp_seq
          , (SELECT X.img_path_arr FROM BA_COMP_DET X WHERE X.ba_comp_seq = A.ba_comp_seq LIMIT 1) as img_path_arr
          , (SELECT X.det_desc FROM BA_COMP_DET X WHERE X.ba_comp_seq = A.ba_comp_seq LIMIT 1) as det_desc           
FROM BA_COMP A
WHERE :_filterQuery
