SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ask_for_price' in 'where clause', query was: SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e`
 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(2, 4) AND cat_index.category_id = '304' AND cat_index.is_parent=1
 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
 LEFT JOIN `cataloginventory_stock_status` AS `cisi` ON (cisi.product_id=e.entity_id) AND (cisi.website_id = '1') WHERE (cisi.stock_status > 0 or ask_for_price ='1')

#0 /home/grayandsons/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/grayandsons/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/grayandsons/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/grayandsons/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT COUNT(DI...', Array)
#4 /home/grayandsons/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT COUNT(DI...', Array)
#5 /home/grayandsons/public_html/lib/Zend/Db/Adapter/Abstract.php(828): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/grayandsons/public_html/lib/Varien/Data/Collection/Db.php(225): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#7 /home/grayandsons/public_html/lib/Varien/Data/Collection.php(225): Varien_Data_Collection_Db->getSize()
#8 /home/grayandsons/public_html/app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php(798): Varien_Data_Collection->getLastPageNumber()
#9 /home/grayandsons/public_html/app/code/local/TriangleDirectMedia/CategoryPaginationCanonicals/Model/Observer.php(20): Mage_Catalog_Block_Product_List_Toolbar->getLastPageNum()
#10 /home/grayandsons/public_html/app/code/core/Mage/Core/Model/App.php(1338): TriangleDirectMedia_CategoryPaginationCanonicals_Model_Observer->add_pagination_canonicals(Object(Varien_Event_Observer))
#11 /home/grayandsons/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(TriangleDirectMedia_CategoryPaginationCanonicals_Model_Observer), 'add_pagination_...', Object(Varien_Event_Observer))
#12 /home/grayandsons/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#13 /home/grayandsons/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(351): Mage::dispatchEvent('controller_acti...', Array)
#14 /home/grayandsons/public_html/app/code/local/Itactica/LayeredNavigation/controllers/CategoryController.php(54): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#15 /home/grayandsons/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Itactica_LayeredNavigation_CategoryController->viewAction()
#16 /home/grayandsons/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#17 /home/grayandsons/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))
#18 /home/grayandsons/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#19 /home/grayandsons/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#20 /home/grayandsons/public_html/index.php(100): Mage::run('', 'store')
#21 {main}