Error en la consulta de conteo de registros: SELECT COUNT(*) FROM pnvNoticias LEFT JOIN pnvNoticiasOrganizaciones ON pnvNoticias.idNoticia=pnvNoticiasOrganizaciones.idNoticia inner join pnvKeywordsRegistros on pnvKeywordsRegistros.idRegistro=pnvNoticias.idNoticia where pnvNoticias.visible = 1 and (pnvNoticias.idTemaParent<>628 or pnvNoticias.idTemaParent=0 or pnvNoticias.idTemaParent is NULL) and (pnvNoticias.idOrganizacionParent = 6 OR pnvNoticiasOrganizaciones.idOrganizacion = 6) and ((pnvNoticias.startDate <= Now() OR pnvNoticias.startDate IS NULL OR pnvNoticias.startDate = '0000-00-00') and (pnvNoticias.endDate >= Now() OR pnvNoticias.endDate IS NULL OR pnvNoticias.endDate = '0000-00-00')) and pnvKeywordsRegistros.idKeyword=3117〈=esp and pnvKeywordsRegistros.idLanguage=1 order by pnvNoticias.nivel desc, pnvNoticias.fecha DESC, pnvNoticias.interes DESC, pnvNoticias.idNoticia 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 '=esp and pnvKeywordsRegistros.idLanguage=1 order by pnvNoticias.nivel desc, pn' at line 1