Fondation

SELECT * FROM ani_workflow AS aw,fondations AS tb WHERE id= AND tb.status=1 AND aw.nom_table='fondations' AND aw.num_enregistrement=tb.id AND aw.valide=1 AND aw.enLigne=1 AND (aw.version='fr' OR aw.version = '*' OR aw.version like 'fr,%' OR aw.version like '%,fr,%' OR aw.version like '%,fr') AND (aw.cible=2 OR aw.cible=1) AND (isnull(dateEnLigne) OR dateEnLigne <= '2024-03-19' OR dateEnLigne = '0000-00-00') AND (isnull(dateRetrait) OR dateRetrait >= '2024-03-19' OR dateRetrait = '0000-00-00')
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 'AND tb.status=1 AND aw.nom_table='fondations' AND aw.num_enregistrement=tb.id...' at line 1