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 /customers/b/a/a/fotoclubnieuwgent.be/httpd.www/databasefunctions_new.php:129
Stack trace:
#0 /customers/b/a/a/fotoclubnieuwgent.be/httpd.www/databasefunctions_new.php(129): mysqli_query(Object(mysqli), 'SELECT userId F...')
#1 /customers/b/a/a/fotoclubnieuwgent.be/httpd.www/databasefunctions_new.php(140): MySQLDb->getUserIdForAlbumId(NULL)
#2 /customers/b/a/a/fotoclubnieuwgent.be/httpd.www/carousel.php(36): MySQLDb->getUserForNewImageId('1526')
#3 {main}
thrown in /customers/b/a/a/fotoclubnieuwgent.be/httpd.www/databasefunctions_new.php on line 129