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 '_SELECT * FROM log_error
	WHERE DATE(datetime) = '2022-04-04'
	ORDER BY datetime' at line 1