Fatal error: Uncaught mysqli_sql_exception: 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 'LIMIT 1' at line 1 in /var/www/vhosts/canal10.cat/httpdocs/pagina/programa.php:36
Stack trace:
#0 /var/www/vhosts/canal10.cat/httpdocs/pagina/programa.php(36): mysqli->query()
#1 /var/www/vhosts/canal10.cat/httpdocs/index.php(15): include('...')
#2 {main}
thrown in /var/www/vhosts/canal10.cat/httpdocs/pagina/programa.php on line 36