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\xB1\xB1\xE8\xA5\xBF\xE9\xBE\x99\xE5\x9F\x8E\xE4\xBA\xBA%' and to_day' at line 1 select * from ***_ecms_live where like '%山西龍城人%' and to_days('2024-11-28 04:37:41')=to_days(start_time) order by newstime ASC limit 100