MySQL Error: ModeloFront::getNoticias SELECT * FROM articulos WHERE Visible = 1 and Vendido = 0 and Revisada = 1 AND IdIdioma = 1 AND IdUsuario IN (SELECT IdCliente FROM clientes_artistas WHERE Visible = 1) AND IdUsuario IN (SELECT Id FROM clientes WHERE Visible = 1) AND IdSeccion = 124 ORDER BY Orden DESC LIMIT -5 ,5 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-5 ,5' at line 1