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 <= '2020-03-31' OR dateEnLigne = '0000-00-00') AND (isnull(dateRetrait) OR dateRetrait >= '2020-03-31' OR dateRetrait = '0000-00-00')
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 tb.status=1 AND aw.nom_table='fondations' AND aw.num_enregistrement=tb.id AN' at line 1