Error en la consulta de conteo de registros: Select from esp_contenido n where(n.estado>0) and(n.id_categoria=) order by 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 desc' at line 3