Select * from cs_bbs_data where (code='jnvc_counsel' AND ccode='jnvc') or (code='jnvc_counsel' AND sharing='Y' ) ORDER BY notice DESC, ref DESC, re_step ASC LIMIT 60., 10