Error: SELECT commenti.nome_file,commenti.data as datacommento, commenti.utente,commenti.id_utente,commenti.commento, immagine.nome_file, immagine.id_utente,immagine.id FROM commenti LEFT JOIN immagine ON commenti.nome_file=immagine.nome_file where immagine.id_utente= and immagine.nome_file<>''
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 immagine.nome_file<>''' at line 1