Notice: Trying to access array offset on value of type null in /gallery/plugins/ProtectedAlbums/index.inc.php on line 152

Warning: [mysql error 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 ') AND enabled='true'' at line 1 SELECT cat_id, question, password, (SELECT name FROM piwigo_categories WHERE id=cat_id) AS cat_name FROM piwigo_protectalbum WHERE cat_id IN () AND enabled='true' in /gallery/include/dblayer/functions_mysqli.inc.php on line 847

Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /gallery/include/dblayer/functions_mysqli.inc.php:211 Stack trace: #0 /gallery/plugins/ProtectedAlbums/index.inc.php(156): pwg_db_fetch_assoc() #1 /gallery/include/functions_plugins.inc.php(264): protalbum_end_index() #2 /gallery/index.php(351): trigger_notify() #3 {main} thrown in /gallery/include/dblayer/functions_mysqli.inc.php on line 211