SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, query was: SELECT DISTINCT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e`
 INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = 0
 INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id='1' AND cat_index.visibility IN(3, 4) AND cat_index.category_id = '8'
 INNER JOIN `catalog_product_index_eav` AS `style_idx` ON `style_idx`.entity_id = e.entity_id AND `style_idx`.attribute_id = '208' AND `style_idx`.store_id = 1 AND `style_idx`.value in (536,537,538,556,1004,1006,1025,1032)
 INNER JOIN `catalog_product_index_eav` AS `material_idx` ON `material_idx`.entity_id = e.entity_id AND `material_idx`.attribute_id = '223' AND `material_idx`.store_id = 1 AND `material_idx`.value in (924) WHERE (`e`.`entity_id` IN(1826, 1723, 1724, 1725, 1726, 1727, 1728, 830, 829, 828, 827, 826, 825, 824, 822, 823, 821, 820, 819, 818, 817, 816, 815, 814, 812, 813, 811, 809, 810, 807, 808, 806, 805, 803, 804, 802, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765))

#0 /home/ronshire/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/ronshire/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/ronshire/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/ronshire/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT DISTINCT...', Array)
#4 /home/ronshire/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT DISTINCT...', Array)
#5 /home/ronshire/public_html/lib/Zend/Db/Adapter/Abstract.php(828): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/ronshire/public_html/lib/Varien/Data/Collection/Db.php(225): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#7 /home/ronshire/public_html/app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext/Collection.php(116): Varien_Data_Collection_Db->getSize()
#8 /home/ronshire/public_html/lib/Varien/Data/Collection.php(225): Mage_CatalogSearch_Model_Resource_Fulltext_Collection->getSize()
#9 /home/ronshire/public_html/app/code/local/Mana/Seo/Model/Observer.php(101): Varien_Data_Collection->getLastPageNumber()
#10 /home/ronshire/public_html/app/code/core/Mage/Core/Model/App.php(1358): Mana_Seo_Model_Observer->prepareMetaData(Object(Varien_Event_Observer))
#11 /home/ronshire/public_html/app/code/core/Mage/Core/Model/App.php(1337): Mage_Core_Model_App->_callObserverMethod(Object(Mana_Seo_Model_Observer), 'prepareMetaData', Object(Varien_Event_Observer))
#12 /home/ronshire/public_html/app/Mage.php(451): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#13 /home/ronshire/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(351): Mage::dispatchEvent('controller_acti...', Array)
#14 /home/ronshire/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#15 /home/ronshire/public_html/app/code/core/Mage/CatalogSearch/controllers/ResultController.php(77): Mage_Core_Controller_Varien_Action->loadLayout()
#16 /home/ronshire/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_CatalogSearch_ResultController->indexAction()
#17 /home/ronshire/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#18 /home/ronshire/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))
#19 /home/ronshire/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/ronshire/public_html/app/Mage.php(687): Mage_Core_Model_App->run(Array)
#21 /home/ronshire/public_html/index.php(87): Mage::run('', 'store')
#22 {main}