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 '%\xE5\x9C\xA3\xE8\x8D\xB7\xE8\xA5\xBFSP\xE5\xA5\xB3\xE8\xB6\xB3%' and to_d' at line 1 select * from ***_ecms_live where like '%圣荷西SP女足%' and to_days('2024-05-22 17:46:14')=to_days(start_time) order by newstime ASC limit 100