Error en:
select p.*, c.nombrees as categoria, c2.nombrees as categoria_padre, c.nombrepaginaes as np_cat from producto as p inner join productocategoria as c on p.idCategoria=c.id left join productocategoria as c2 on c.idPadre=c2.id where p.idRelacionado=0 and p.nombrees!="" and p.activo and activacion <= '2026-04-17 08:06:47' order by p.prioridad asc, p.fecha desc, p.id desc limit -16,16

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 '-16,16' at line 1