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 1 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 * FROM r...')
#1 /home/autoitit/public_html/model/class.Insertion.php(285): ExecQuery('SELECT * FROM r...', 'select')
#2 /home/autoitit/public_html/annuncio/header.php(20): Insertion::getInsertionImages(NULL)
#3 /home/autoitit/public_html/annuncio/index.php(3): include('/home/autoitit/...')
#4 {main}
thrown in /home/autoitit/public_html/controller/db_function.php on line 22