Select * from cs_bbs_data where (code='kncvc_press' AND ccode='kncvc') OR (code='kncvc_press' AND sharing='Y' ) ORDER BY notice DESC, reg_date DESC LIMIT 30., 10