SELECT `e`.*, IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) AS `is_active` FROM `catalog_category_entity` AS `e`
 INNER JOIN `catalog_category_entity_int` AS `at_is_active_default` ON (`at_is_active_default`.`entity_id` = `e`.`entity_id`) AND (`at_is_active_default`.`attribute_id` = '42') AND `at_is_active_default`.`store_id` = 0
 LEFT JOIN `catalog_category_entity_int` AS `at_is_active` ON (`at_is_active`.`entity_id` = `e`.`entity_id`) AND (`at_is_active`.`attribute_id` = '42') AND (`at_is_active`.`store_id` = 1) WHERE (`e`.`entity_type_id` = '3') AND (`e`.`entity_id` IN('5')) AND (IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) = '1')

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(599): Mage_Catalog_Model_Resource_Category_Collection->load()
#11 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Model/Category.php(831): Mage_Catalog_Model_Resource_Category->getParentCategories(Object(Mage_Catalog_Model_Category))
#12 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Helper/Data.php(104): Mage_Catalog_Model_Category->getParentCategories()
#13 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Block/Breadcrumbs.php(63): Mage_Catalog_Helper_Data->getBreadcrumbPath()
#14 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Catalog_Block_Breadcrumbs->_prepareLayout()
#15 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#16 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/Block/Category/View.php(40): Mage_Core_Model_Layout->createBlock('catalog/breadcr...')
#17 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Catalog_Block_Category_View->_prepareLayout()
#18 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#19 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('catalog/categor...', 'category.produc...')
#20 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('catalog/categor...', 'category.produc...')
#21 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#22 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#23 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#24 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Catalog/controllers/CategoryController.php(146): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#25 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
#26 /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')
#27 /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))
#28 /var/www/www-admin/data/www/vodar.by/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#29 /var/www/www-admin/data/www/vodar.by/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#30 /var/www/www-admin/data/www/vodar.by/index.php(87): Mage::run('', 'store')
#31 {main}