errore : select m.*,mt.* from as m inner join as mt on (mt.id_padre=m.id and mt.lingua=2) where m.id=166 and (pubvisibile_0_ & 2)>0 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 'as m inner join as mt on (mt.id_padre=m.id and mt.lingua=2) where m.id=166 and ' at line 1