Warning: Trying to access array offset on value of type bool in /var/www/dibis/application/views/browse_pictures.php on line 185

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 /var/www/dibis/vendor/mattbit/mysql-compat/src/Connection.php:45 Stack trace: #0 /var/www/dibis/vendor/mattbit/mysql-compat/src/Connection.php(45): PDO->query() #1 /var/www/dibis/vendor/mattbit/mysql-compat/src/BridgeComponents/ExecuteQueries.php(22): Mattbit\MysqlCompat\Connection->query() #2 [internal function]: Mattbit\MysqlCompat\Bridge->query() #3 /var/www/dibis/vendor/mattbit/mysql-compat/src/Mysql.php(40): call_user_func_array() #4 /var/www/dibis/vendor/mattbit/mysql-compat/src/globals.php(178): Mattbit\MysqlCompat\Mysql::__callStatic() #5 /var/www/dibis/application/views/browse_pictures.php(186): mysql_query() #6 /var/www/dibis/main.php(239): include('...') #7 /var/www/dibis/public/index.php(16): require('...') #8 {main} thrown in /var/www/dibis/vendor/mattbit/mysql-compat/src/Connection.php on line 45