Select * from cs_bbs_data where (code='kcvc_press' AND ccode='kcvc') OR (code='kcvc_press' AND sharing='Y' ) ORDER BY notice DESC, reg_date DESC LIMIT 0;, 10