select DISTINCT n.*, cn.categoriaEN as categoria, cn.nombrepaginaEN as np_cat from noticias_cat cn INNER JOIN noticias n ON cn.id=n.idCategoria WHERE n.fecha<=? AND n.activo=1 AND cn.activo=1 order by n.prioridad, n.fecha desc limit -360,6
Array
(
[0] => 2024-03-28
)
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 '-360,6' at line 1