Select * from cs_bbs_data where (code='gjcvc_free' and ccode='gjcvc') or (code='gjcvc_free' and sharing='Y' ) order by notice DESC, ref DESC, re_step ASC LIMIT 0;, 10