Fatal error: Uncaught mysqli_sql_exception: 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 'AND (ligas.tipo = 'ida' OR ligas.tipo = 'vuelta')' at line 15 in /homepages/31/d468348733/htdocs/ligaprivada/ver-liga.php:50 Stack trace: #0 /homepages/31/d468348733/htdocs/ligaprivada/ver-liga.php(50): mysqli_query(Object(mysqli), 'SELECT ligas.id...') #1 {main} thrown in /homepages/31/d468348733/htdocs/ligaprivada/ver-liga.php on line 50