Error en la consulta de conteo alternativo de registros: SELECT jos_content.id, jos_content.title, jos_content.alias, jos_content.title_alias, jos_content.introtext, jos_content.`fulltext`, jos_content.state, jos_content.sectionid, jos_content.mask, jos_content.catid, jos_content.created, jos_content.created_by, jos_content.created_by_alias, jos_content.modified, jos_content.modified_by, jos_content.checked_out, jos_content.checked_out_time, jos_content.publish_up, jos_content.publish_down, jos_content.images, jos_content.urls, jos_content.attribs, jos_content.version, jos_content.parentid, jos_content.ordering, jos_content.metakey, jos_content.metadesc, jos_content.access, jos_content.hits, jos_content.metadata, jos_content.bajada, jos_content.interior, jos_content.nombre_tema, jos_content.pdf_src, jos_categories.title as categoria, jos_sections.title as seccion, jos_sections.`name` as seccion_nombre, jos_categories.`name` as categoria_nombre, jos_categories.alias as categoria_alias, jos_sections.alias as seccion_alias FROM jos_categories INNER JOIN jos_sections ON jos_categories.section = jos_sections.id INNER JOIN jos_content ON jos_content.sectionid = jos_sections.id AND jos_content.catid = jos_categories.id WHERE jos_content.state = 1 AND jos_categories.published = 1 AND jos_content.catid = ORDER BY jos_content.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 jos_content.id DESC' at line 50