Consulta inválida: 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 '' at line 1 Consulta: select a.codigo, a.categoria, b.nombre, a.numero, a.fecha, a.titulo, a.texto, a.solosuscriptores from articulos a left join categorias b on a.categoria = b.codigo where a.codigo =