SQLSTATE[HY000]: General error: 23 Out of resources when opening file '/tmp/#sql_4ea_1.MYI' (Errcode: 24 - Too many open files), query was: SELECT `main_table`.`entity_type_id`, `main_table`.`attribute_code`, `main_table`.`attribute_model`, `main_table`.`backend_model`, `main_table`.`backend_type`, `main_table`.`backend_table`, `main_table`.`frontend_model`, `main_table`.`frontend_input`, `main_table`.`frontend_label`, `main_table`.`frontend_class`, `main_table`.`source_model`, `main_table`.`is_required`, `main_table`.`is_user_defined`, `main_table`.`default_value`, `main_table`.`is_unique`, `main_table`.`note`, `additional_table`.*, IFNULL(al.value, main_table.frontend_label) AS `store_label` FROM `eav_attribute` AS `main_table`
 INNER JOIN `catalog_eav_attribute` AS `additional_table` ON additional_table.attribute_id = main_table.attribute_id
 LEFT JOIN `eav_attribute_label` AS `al` ON al.attribute_id = main_table.attribute_id AND al.store_id = 4 WHERE (main_table.entity_type_id = 4) AND (`additional_table`.`is_filterable` > 0) GROUP BY `main_table`.`attribute_id` ORDER BY position ASC

#0 /var/www/vhosts/websitestatus.de/mah.de/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/vhosts/websitestatus.de/mah.de/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /var/www/vhosts/websitestatus.de/mah.de/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `main_ta...', Array)
#4 /var/www/vhosts/websitestatus.de/mah.de/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `main_ta...', Array)
#5 /var/www/vhosts/websitestatus.de/mah.de/lib/Zend/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `main_ta...', Array)
#6 /var/www/vhosts/websitestatus.de/mah.de/lib/Varien/Data/Collection/Db.php(740): Zend_Db_Adapter_Abstract->fetchAll('SELECT `main_ta...', Array)
#7 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(521): Varien_Data_Collection_Db->_fetchAll('SELECT `main_ta...', Array)
#8 /var/www/vhosts/websitestatus.de/mah.de/lib/Varien/Data/Collection/Db.php(572): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#9 /var/www/vhosts/websitestatus.de/mah.de/app/code/local/Amasty/Shopby/Helper/Attributes.php(146): Varien_Data_Collection_Db->load()
#10 /var/www/vhosts/websitestatus.de/mah.de/app/code/local/Amasty/Shopby/Helper/Attributes.php(262): Amasty_Shopby_Helper_Attributes->getFilterableAttributes()
#11 /var/www/vhosts/websitestatus.de/mah.de/app/code/local/Amasty/Shopby/Helper/Data.php(302): Amasty_Shopby_Helper_Attributes->getRequestedFilterCodes()
#12 /var/www/vhosts/websitestatus.de/mah.de/app/code/local/Amasty/Shopby/Model/Observer.php(42): Amasty_Shopby_Helper_Data->restrictMultipleSelection()
#13 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Core/Model/App.php(1358): Amasty_Shopby_Model_Observer->handleCatalogControllerCategoryInitAfter(Object(Varien_Event_Observer))
#14 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Core/Model/App.php(1337): Mage_Core_Model_App->_callObserverMethod(Object(Amasty_Shopby_Model_Observer), 'handleCatalogCo...', Object(Varien_Event_Observer))
#15 /var/www/vhosts/websitestatus.de/mah.de/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('catalog_control...', Array)
#16 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Catalog/controllers/CategoryController.php(67): Mage::dispatchEvent('catalog_control...', Array)
#17 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Catalog/controllers/CategoryController.php(116): Mage_Catalog_CategoryController->_initCatagory()
#18 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_CategoryController->viewAction()
#19 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#20 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#21 /var/www/vhosts/websitestatus.de/mah.de/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#22 /var/www/vhosts/websitestatus.de/mah.de/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#23 /var/www/vhosts/websitestatus.de/mah.de/index.php(83): Mage::run('mah', 'website')
#24 {main}