Error en: SELECT *, contenidos.idPadre FROM contenidos_idioma INNER JOIN contenidos ON contenidos.id=contenidos_idioma.idContenido WHERE idContenido=- AND idIdioma=2 AND titulo<>''. 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 idIdioma=2 AND titulo<>''' at line 1