Error at 2021-01-25 18:09:37:
Query:
SELECT *
FROM contenido_grupos_atributos cga
LEFT JOIN contenido_atributos ca ON cga.id_atributo = ca.id_atributo
WHERE id_grupo=
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 '' at line 4
Error at 2021-01-25 18:09:37:
Query:
SELECT ca.*, cc.nombre as categoria, cc.alias as categoria_alias, cc2.nombre as categoria_padre, cc2.alias as categoria_padre_alias,
cc.id_categoria, cc2.id_categoria as id_categoria_padre
FROM contenido_articulos ca
LEFT JOIN contenido_articulos_categorias cac ON ca.id_contenido = cac.id_contenido
LEFT JOIN contenido_categorias cc ON cac.id_categoria = cc.id_categoria
LEFT JOIN contenido_categorias cc2 ON cc.id_padre = cc2.id_categoria
WHERE (cac.id_categoria= OR cc.id_padre=) AND ca.borrado = 0 and ca.estado = 1
ORDER BY ca.id_contenido 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 'OR cc.id_padre=) AND ca.borrado = 0 and ca.estado = 1
ORDER BY ca.id_cont' at line 7