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 indirizzi.id_utente = utenti.id_utente AND indirizzi.nome_indir = 'Indirizzo' at line 1