Select * from cs_bbs_data where (code='gpcvc_counsel' AND ccode='gpcvc') or (code='gpcvc_counsel' AND sharing='Y' ) ORDER BY notice DESC, ref DESC, re_step ASC LIMIT 0;, 10