Se ha producido un error en el motor de MySQL
El valor numérico asociado a este error es:1064
Su mensaje de error es:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
La consulta asociada es: SELECT count(*) AS total FROM sub_categorias WHERE id =