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 ( <> id) order by ordine, id' at line 1
select gallerie.id as id_galleria, gallerie.nome as nomegalleria, gallerie.cover, gallerie.cartella, foto.nomefile, foto.nome as nomefoto from foto inner join gallerie on (foto.GALLERIA = gallerie.id) where foto.id=889
Showing Photo