SELECT `e`.*, IF(at_custom_use_parent_settings.value_id > 0, at_custom_use_parent_settings.value, at_custom_use_parent_settings_default.value) AS `custom_use_parent_settings` FROM `catalog_category_entity` AS `e`
 INNER JOIN `catalog_category_entity_int` AS `at_custom_use_parent_settings_default` ON (`at_custom_use_parent_settings_default`.`entity_id` = `e`.`entity_id`) AND (`at_custom_use_parent_settings_default`.`attribute_id` = '68') AND `at_custom_use_parent_settings_default`.`store_id` = 0
 LEFT JOIN `catalog_category_entity_int` AS `at_custom_use_parent_settings` ON (`at_custom_use_parent_settings`.`entity_id` = `e`.`entity_id`) AND (`at_custom_use_parent_settings`.`attribute_id` = '68') AND (`at_custom_use_parent_settings`.`store_id` = 1) WHERE (`e`.`entity_type_id` = '3') AND (`e`.`entity_id` IN('5', '2', '1')) AND (IF(at_custom_use_parent_settings.value_id > 0, at_custom_use_parent_settings.value, at_custom_use_parent_settings_default.value) = '0') AND (`e`.`level` != 0) ORDER BY `e`.`level` DESC

SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query

#0 /var/www/www-admin/data/www/vodar.by/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /var/www/www-admin/data/www/vodar.by/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /var/www/www-admin/data/www/vodar.by/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /var/www/www-admin/data/www/vodar.by/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `e`.*, I...', Array)
#4 /var/www/www-admin/data/www/vodar.by/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `e`.*, I...', Array)
#5 /var/www/www-admin/data/www/vodar.by/lib/Zend/Db/Adapter/Abstract.php(734): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `e`.*, I...', Array)
#6 /var/www/www-admin/data/www/vodar.by/lib/Varien/Data/Collection/Db.php(734): Zend_Db_Adapter_Abstract->fetchAll('SELECT `e`.*, I...', Array)
#7 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1047): Varien_Data_Collection_Db->_fetchAll('SELECT `e`.*, I...')
#8 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(871): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#9 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Model/Resource/Category/Collection.php(199): Mage_Eav_Model_Entity_Collection_Abstract->load(false, false)
#10 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Model/Resource/Category.php(625): Mage_Catalog_Model_Resource_Category_Collection->load()
#11 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Model/Category.php(851): Mage_Catalog_Model_Resource_Category->getParentDesignCategory(Object(Mage_Catalog_Model_Category))
#12 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Model/Design.php(348): Mage_Catalog_Model_Category->getParentDesignCategory(Object(Mage_Catalog_Model_Category))
#13 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/controllers/CategoryController.php(116): Mage_Catalog_Model_Design->getDesignSettings(Object(Mage_Catalog_Model_Category))
#14 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
#15 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#16 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#18 /var/www/www-admin/data/www/vodar.by/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#19 /var/www/www-admin/data/www/vodar.by/index.php(87): Mage::run('', 'store')
#20 {main}