Detail of the work
MySQL Error: ModeloFront::getNoticias SELECT * FROM articulos WHERE Visible = 1 AND IdIdioma = 1 AND Vendido = 0 AND IdSeccion = AND Orden > '' ORDER BY Orden ASC LIMIT 1 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 'AND Orden > '' ORDER BY Orden ASC LIMIT 1' at line 1