ERROR :

MYSQL-ERROR : 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 mc.visible =1 AND mcxi.idioma = 'ca'' at line 6
FILE : /var/www/html/motosprint/include/include.funciones.php : 2078
SELECT 'MARCA'tipus, mc.nombre nom, mcxi.idioma
                	      FROM mc_marca mc
			      JOIN mc_marcaxidioma mcxi 
			      ON ( mcxi.id_marca = mc.id )
			      WHERE mc.id =  
		       	      AND mc.visible =1 AND mcxi.idioma = 'ca'