Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3

SELECT id, name, permalink
  FROM ram_categories
  WHERE id IN () in /var/www/virtual/emperor.gr/htdocs/gallery/include/dblayer/functions_mysqli.inc.php on line 845
Fatal error: Call to a member function fetch_assoc() on boolean in /var/www/virtual/emperor.gr/htdocs/gallery/include/dblayer/functions_mysqli.inc.php on line 898