SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')))) AND (IF(at_status.value_id > 0, at_status.value, at_status_default.value) =' at line 6, query was: SELECT COUNT(DISTINCT e.entity_id) FROM `catalog_product_entity` AS `e`
 INNER JOIN `catalog_product_website` AS `product_website` ON product_website.product_id = e.entity_id AND product_website.website_id = '1'
 INNER JOIN `catalog_product_entity_int` AS `at_status_default` ON (`at_status_default`.`entity_id` = `e`.`entity_id`) AND (`at_status_default`.`attribute_id` = '96') AND `at_status_default`.`store_id` = 0
 LEFT JOIN `catalog_product_entity_int` AS `at_status` ON (`at_status`.`entity_id` = `e`.`entity_id`) AND (`at_status`.`attribute_id` = '96') AND (`at_status`.`store_id` = 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
 INNER JOIN `cataloginventory_stock_item` AS `at_inventory_in_stock` ON (at_inventory_in_stock.`product_id`=e.entity_id) AND ((at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock=1 AND at_inventory_in_stock.is_in_stock=1) OR (at_inventory_in_stock.use_config_manage_stock = 0 AND at_inventory_in_stock.manage_stock=0) OR (at_inventory_in_stock.use_config_manage_stock = 1 AND at_inventory_in_stock.is_in_stock=1)) WHERE (`e`.`entity_id` != '792') AND (((()))) AND (IF(at_status.value_id > 0, at_status.value, at_status_default.value) = 1)

#0 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT COUNT(DI...', Array)
#4 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('SELECT COUNT(DI...', Array)
#5 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Zend/Db/Adapter/Abstract.php(828): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Varien/Data/Collection/Db.php(225): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#7 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Varien/Data/Collection.php(225): Varien_Data_Collection_Db->getSize()
#8 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Varien/Data/Collection.php(211): Varien_Data_Collection->getLastPageNumber()
#9 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1034): Varien_Data_Collection->getCurPage()
#10 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(871): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#11 /home/coffresfor/domains/coffrefortpro.com/public_html/lib/Varien/Data/Collection.php(301): Mage_Eav_Model_Entity_Collection_Abstract->load()
#12 /home/coffresfor/domains/coffrefortpro.com/public_html/app/design/frontend/coffres_forts/default/template/catalog/product/list/upsell.phtml(7): Varien_Data_Collection->getItems()
#13 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/coffresfo...')
#14 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/coffre...')
#15 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#16 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#17 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#18 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('upsell_products', true)
#19 /home/coffresfor/domains/coffrefortpro.com/public_html/app/design/frontend/coffres_forts/default/template/catalog/product/view.phtml(65): Mage_Core_Block_Abstract->getChildHtml('upsell_products')
#20 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/coffresfo...')
#21 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/coffre...')
#22 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#23 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#24 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#25 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#26 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#27 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#28 /home/coffresfor/domains/coffrefortpro.com/public_html/app/design/frontend/coffres_forts/default/template/page/1column.phtml(53): Mage_Core_Block_Abstract->getChildHtml('content')
#29 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/coffresfo...')
#30 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/coffre...')
#31 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#32 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#33 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#34 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#35 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#36 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'no-route')
#37 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(75): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'no-route')
#38 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->noRouteAction()
#39 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('noRoute')
#40 /home/coffresfor/domains/coffrefortpro.com/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))
#41 /home/coffresfor/domains/coffrefortpro.com/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#42 /home/coffresfor/domains/coffrefortpro.com/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#43 /home/coffresfor/domains/coffrefortpro.com/public_html/index.php(83): Mage::run('', 'store')
#44 {main}