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 'like '%\xE6\xB0\xB4\xE5\x8E\x9FKT\xE9\x9F\xB3\xE9\x80\x9F\xE5\xBC\xB9%' and to_d' at line 1 select * from ***_ecms_live where like '%水原KT音速弹%' and to_days('2024-05-22 17:03:32')=to_days(start_time) order by newstime ASC limit 100