MySQL Error: ModeloFront::getNoticias SELECT * FROM blog WHERE Visible = 1 and IdCategoria = AND IdIdioma = 1 AND IdPadre <> ORDER BY FechaNoticia DESC Limit 3 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 IdIdioma = 1 AND IdPadre <> ORDER BY FechaNoticia DESC Limit 3' at line 1