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\xBE\xB7\xE9\xBB\x91\xE5\x85\xB0\xE7\x8B\xAC\xE7\xAB\x8B%' and to_day' at line 1 select * from ***_ecms_live where like '%德黑蘭獨立%' and to_days('2024-11-25 09:15:10')=to_days(start_time) order by newstime ASC limit 100