Errore nella query: 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 '\'3\' AND A.id=\'820\' ORDER BY A.id' at line 6
SELECT A.id, A.nome, A.marca, A.prezzo, A.note, A.taglia,A.qta, A.colore, A.spediz, C.nome as gruppo, B.nome as catNome, D.foto as foto, E.id AS prom,E.prezzo as prezzoProm FROM abbigliamento AS A left join foto as D on (D.id_abb = A.id) LEFT JOIN categorie AS B ON ( A.id_cat = B.id ) LEFT JOIN gruppi AS C ON ( B.tipo = C.tipo ) LEFT JOIN promozioni AS E ON ( A.id = E.id_abb ) WHERE B.tipo=\'3\' AND A.id=\'820\' ORDER BY A.id