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 '' at line 2 in /var/www/html/inc/mysql.php:30
Stack trace:
#0 /var/www/html/inc/mysql.php(30): mysqli_query(Object(mysqli), 'select * from a...')
#1 /var/www/html/pages/more.php(22): mysql->execSQL('select * from a...')
#2 {main}
thrown in /var/www/html/inc/mysql.php on line 30