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 classid in (103,104,105,106,107,108,109,110,111) and ((title LIKE '%\xE4\xBF' at line 1
SELECT COUNT(*) as total FROM `***_ecms_shop` WHERE and classid in (103,104,105,106,107,108,109,110,111) and ((title LIKE '%保护宠物%'))