You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\xEC.\xC2, 12' at line 1Select * from red_bbs_data where code='nomalphoto' and notice < 1 order by ref desc,re_step ASC LIMIT 12ì.Â, 12