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 ')' at line 3

SELECT id, name, permalink
  FROM piwigo_categories
  WHERE id IN () in /volume1/web/websites/piwigomap/public_html/include/dblayer/functions_mysqli.inc.php on line 847
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in /volume1/web/websites/piwigomap/public_html/include/dblayer/functions_mysqli.inc.php:900 Stack trace: #0 /volume1/web/websites/piwigomap/public_html/include/functions.inc.php(1616): query2array('\nSELECT id, nam...', 'id') #1 /volume1/web/websites/piwigomap/public_html/picture.php(962): hash_from_query('\nSELECT id, nam...', 'id') #2 {main} thrown in /volume1/web/websites/piwigomap/public_html/include/dblayer/functions_mysqli.inc.php on line 900