KO $qryF: SELECT * FROM files WHERE langId = 1 AND refTable='assicurazioni' AND id_refTable= AND type='img' ORDER BY position;
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 type='img' ORDER BY position' at line 2