Select * from cs_bbs_data where (code='kcvc_gallery' and ccode='kcvc') or (code='kcvc_gallery' and sharing='Y' ) order by notice DESC, reg_date DESC LIMIT 120, 12