SELECT `e`.* FROM `catalog_category_entity` AS `e` WHERE (`e`.`entity_type_id` = '3') AND (entity_id IN ()) ORDER BY `level` DESC LIMIT 1

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 ')) ORDER BY `level` DESC LIMIT 1' at line 1, query was: SELECT `e`.* FROM `catalog_category_entity` AS `e` WHERE (`e`.`entity_type_id` = '3') AND (entity_id IN ()) ORDER BY `level` DESC LIMIT 1

#0 /var/www/dampfkessel-teile.de/htdocs/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/Zend/1.12.11/Db/Statement.php(303): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/Zend/1.12.11/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/Zend/1.12.11/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `e`.* FR...', Array)
#4 /var/www/dampfkessel-teile.de/htdocs/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `e`.* FR...', Array)
#5 /var/Zend/1.12.11/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `e`.* FR...', Array)
#6 /var/www/dampfkessel-teile.de/htdocs/lib/Varien/Data/Collection/Db.php(734): Zend_Db_Adapter_Abstract->fetchAll('SELECT `e`.* FR...', Array)
#7 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1047): Varien_Data_Collection_Db->_fetchAll('SELECT `e`.* FR...')
#8 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(871): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#9 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Catalog/Model/Resource/Category/Collection.php(191): Mage_Eav_Model_Entity_Collection_Abstract->load(false, false)
#10 /var/www/dampfkessel-teile.de/htdocs/lib/Varien/Data/Collection.php(268): Mage_Catalog_Model_Resource_Category_Collection->load()
#11 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Catalog/Model/Product.php(2268): Varien_Data_Collection->getFirstItem()
#12 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Catalog/controllers/ProductController.php(137): Mage_Catalog_Model_Product->getLastCategory()
#13 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_ProductController->viewAction()
#14 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#15 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#16 /var/www/dampfkessel-teile.de/htdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#17 /var/www/dampfkessel-teile.de/htdocs/app/Mage.php(672): Mage_Core_Model_App->run(Array)
#18 /var/www/dampfkessel-teile.de/htdocs/index.php(29): Mage::run('', 'store')
#19 {main}