SQL=select p.*, pi.referencia, pi.texto FROM productos AS p, productos_trad AS pi WHERE p.activa=1 AND p.producto_cp=pi.producto_ce AND p.categoria_ce= AND pi.idioma_ce=1 ORDER BY p.orden DESC 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 pi.idioma_ce=1 ORDER BY p.orden DESC' at line 1