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 7 in /home/autoitit/public_html/controller/db_function.php:22
Stack trace:
#0 /home/autoitit/public_html/controller/db_function.php(22): mysqli->query('SELECT user.*, ...')
#1 /home/autoitit/public_html/model/class.User.php(175): ExecQuery('SELECT user.*, ...', 'select')
#2 /home/autoitit/public_html/venditore/index.php(17): User::getById('')
#3 {main}
thrown in /home/autoitit/public_html/controller/db_function.php on line 22