Wat er allemaal te vieren valt

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OR (date = AND id > )) ORDER BY date = 0, date ASC, id ASC ...' at line 6 ... query: SELECT * FROM moduleEvent WHERE website_id = 67 AND language_id = 1 AND active = 1 AND (date > OR (date = AND id > )) ORDER BY date = 0, date ASC, id ASC LIMIT 1