Error en la consulta de conteo de registros: SELECT COUNT(*) FROM esp_contenido n where(n.estado>0) and(n.id_categoria=) order by n.id desc. Mysql dijo: 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 ') order by n.id desc' at line 3