Warning: PDOStatement::execute(): MySQL server has gone away  in /var/www/html/lib/Zend/Db/Statement/Pdo.php on line 228

#0 [internal function]: mageCoreErrorHandler(2, 'PDOStatement::e...', '/var/www/html/l...', 228, Array)
#1 /var/www/html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#2 /var/www/html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#3 /var/www/html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#4 /var/www/html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#5 /var/www/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT COUNT(m....', Array)
#6 /var/www/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT COUNT(m....', Array)
#7 /var/www/html/lib/Zend/Db/Adapter/Abstract.php(828): Varien_Db_Adapter_Pdo_Mysql->query('SELECT COUNT(m....', Array)
#8 /var/www/html/app/code/local/Mage/Catalog/Model/Resource/Category.php(485): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#9 /var/www/html/app/code/core/Mage/Catalog/Model/Category.php(721): Mage_Catalog_Model_Resource_Category->getChildrenAmount(Object(Mage_Catalog_Model_Category))
#10 /var/www/html/app/code/core/Mage/Catalog/controllers/CategoryController.php(130): Mage_Catalog_Model_Category->hasChildren()
#11 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_CategoryController->viewAction()
#12 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#13 /var/www/html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14 /var/www/html/app/code/core/Mage/Core/Model/App.php(381): Mage_Core_Controller_Varien_Front->dispatch()
#15 /var/www/html/app/Mage.php(686): Mage_Core_Model_App->run(Array)
#16 /var/www/html/index.php(84): Mage::run('', 'store')
#17 {main}