Select * from cs_bbs_data where (code='issue' and ccode='kncvc') or (code='issue' and sharing='Y' ) order by notice DESC, idx DESC LIMIT 50., 10