Errore su SELECT ID_contratto, Data_contratto FROM tab_contratti LEFT JOIN tab_esiti ON tab_contratti.ID_esito = tab_esiti.ID_esito WHERE ID_cliente = 0 AND ID_utente = AND Esito = 'positivo': 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 Esito = 'positivo'' at line 1