Select * from red_bbs_data where code='news' and notice < 1 order by ref desc, re_step ASC LIMIT 50ì.Â, 10