Select * from cs_bbs_data where (code='bbslaw' and ccode='nbcvc') or (code='bbslaw' and sharing='Y' ) order by notice DESC, reg_date DESC LIMIT 0;, 10