A Database Error Occurred

Error Number: 1064

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 ') ) ORDER BY RAND() LIMIT 0, 1' at line 11

SELECT a.*, t.id_tag FROM ads AS a LEFT JOIN ads_tag AS t ON a.id = t.id_ads WHERE a.line = "yes" AND a.format = "300x250" AND ( a.nb_display_max = 0 OR ( a.nb_display < a.nb_display_max ) ) AND ( a.nb_clic_max = 0 OR ( a.nb_clic < a.nb_clic_max ) ) AND ( a.date_enable = "no" OR ( a.date_enable = "yes" AND a.date_start <= "2024-03-28" AND a.date_end >= "2024-03-28" ) ) AND a.push = "yes" AND ( id_tag IS NULL OR id_tag IN (582,551,) ) ORDER BY RAND() LIMIT 0, 1

Filename: /home/web/dimension-emploi/prod/DimensionEmploi/application/models/ads_model.php

Line Number: 157