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 'INNER JOIN adv_zone ON adv_zone.id=adv_banner.zone
AND (adv_banner.zone='1'...' at line 4 in /var/www/vhosts/bassanonet.it/httpdocs/include/class/class.advertising.php:123
Stack trace:
#0 /var/www/vhosts/bassanonet.it/httpdocs/include/class/class.advertising.php(123): mysqli_query()
#1 /var/www/vhosts/bassanonet.it/httpdocs/include/class/class.advertising.php(27): Advertising->leaderboard()
#2 /var/www/vhosts/bassanonet.it/httpdocs/include/config.php(95): Advertising->__construct()
#3 /var/www/vhosts/bassanonet.it/httpdocs/agenda.php(3): include('...')
#4 {main}
thrown in /var/www/vhosts/bassanonet.it/httpdocs/include/class/class.advertising.php on line 123