// Filtro por A�O if ($_POST["ano"] != '') { header( 'Location: https://devuego.lat/juegos/buscar?ano='.$_POST["ano"] ); } ?> 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 juegopadre=0 and juegos.idmotor=motores.id order by juegos.ano desc' at line 1