Warning: PDOStatement::execute(): MySQL server has gone away  in /home/advance1/public_html/lib/Zend/Db/Statement/Pdo.php on line 228

#0 [internal function]: mageCoreErrorHandler(2, 'PDOStatement::e...', '/home/advance1/...', 228, Array)
#1 /home/advance1/public_html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#2 /home/advance1/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#3 /home/advance1/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#4 /home/advance1/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#5 /home/advance1/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT COUNT(DI...', Array)
#6 /home/advance1/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT COUNT(DI...', Array)
#7 /home/advance1/public_html/lib/Zend/Db/Adapter/Abstract.php(828): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#8 /home/advance1/public_html/lib/Varien/Data/Collection/Db.php(225): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#9 /home/advance1/public_html/lib/Varien/Data/Collection.php(225): Varien_Data_Collection_Db->getSize()
#10 /home/advance1/public_html/app/code/core/Mage/Page/Block/Html/Pager.php(229): Varien_Data_Collection->getLastPageNumber()
#11 /home/advance1/public_html/app/design/frontend/sm_market/default/template/page/html/head.phtml(213): Mage_Page_Block_Html_Pager->getLastPageNum()
#12 /home/advance1/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/advance1/...')
#13 /home/advance1/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/sm_mar...')
#14 /home/advance1/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#15 /home/advance1/public_html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml()
#16 /home/advance1/public_html/app/code/core/Mage/Core/Block/Abstract.php(641): Mage_Core_Block_Abstract->toHtml()
#17 /home/advance1/public_html/app/code/core/Mage/Core/Block/Abstract.php(585): Mage_Core_Block_Abstract->_getChildHtml('head', true)
#18 /home/advance1/public_html/app/design/frontend/sm_market/default/template/page/2columns-left.phtml(37): Mage_Core_Block_Abstract->getChildHtml('head')
#19 /home/advance1/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/advance1/...')
#20 /home/advance1/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/sm_mar...')
#21 /home/advance1/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#22 /home/advance1/public_html/app/code/core/Mage/Core/Block/Abstract.php(923): Mage_Core_Block_Template->_toHtml()
#23 /home/advance1/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#24 /home/advance1/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#25 /home/advance1/public_html/app/code/local/Sm/Shopby/controllers/CategoryController.php(78): Mage_Core_Controller_Varien_Action->renderLayout()
#26 /home/advance1/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Sm_Shopby_CategoryController->viewAction()
#27 /home/advance1/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#28 /home/advance1/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#29 /home/advance1/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#30 /home/advance1/public_html/app/Mage.php(692): Mage_Core_Model_App->run(Array)
#31 /home/advance1/public_html/index.php(85): Mage::run('', 'store')
#32 {main}