error: 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 'AND sort_date >= '2023-04-01' order by sort_date LIMIT 5' at line 1 Query: SELECT * FROM events WHERE status = 1 AND event_id != AND sort_date >= '2023-04-01' order by sort_date LIMIT 5