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 '\x0E\xC2\xEC, 15' at line 1Select * from red_bbs_data where code='free' and notice < 1 order by ref desc, re_step ASC LIMIT 150Âì, 15