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 'and classname like '%\xD5\xFE\xB2\xDF\xCE\xC4\xBC\xFE%'' at line 1
SELECT classid FROM `***_enewsclass` where bclassid= and classname like '%ļ%'