a:5:{i:0;s:1077:"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'SUM((IFNULL(main_table.base_total_invoiced, 0) - IFNULL(main_table.base_tax_invoiced, 0) - IFNULL(main_table.base_shipping_invoiced, 0) - (IFNULL(main_table.base_total_refunded, 0) - IFNULL(ma' in 'field list', query was: SELECT `SUM((IFNULL(main_table.base_total_invoiced, 0) - IFNULL(main_table.base_tax_invoiced, 0) - IFNULL(main_table.base_shipping_invoiced, 0) - (IFNULL(main_table.base_total_refunded, 0) - IFNULL(main_table.base_tax_refunded, 0) - IFNULL(main_table.base_shipping_refunded, 0))) * main_table`.`base_to_global_rate)` AS `lifetime`, `AVG((IFNULL(main_table.base_total_invoiced, 0) - IFNULL(main_table.base_tax_invoiced, 0) - IFNULL(main_table.base_shipping_invoiced, 0) - (IFNULL(main_table.base_total_refunded, 0) - IFNULL(main_table.base_tax_refunded, 0) - IFNULL(main_table.base_shipping_refunded, 0))) * main_table`.`base_to_global_rate)` AS `average` FROM `mag_sales_flat_order` AS `main_table` WHERE (main_table.status NOT IN('canceled')) AND (main_table.state NOT IN('new', 'pending_payment'))";i:1;s:3410:"#0 /home/foucray/www/includes/src/Varien_Db_Statement_Pdo_Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/foucray/www/includes/src/__default.php(65501): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/foucray/www/includes/src/__default.php(54720): Zend_Db_Statement->execute(Array)
#3 /home/foucray/www/includes/src/__default.php(55757): Zend_Db_Adapter_Abstract->query('SELECT `SUM((IF...', Array)
#4 /home/foucray/www/includes/src/__default.php(56693): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `SUM((IF...', Array)
#5 /home/foucray/www/includes/src/__default.php(54977): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `SUM((IF...', Array)
#6 /home/foucray/www/includes/src/__default.php(32335): Zend_Db_Adapter_Abstract->fetchAll('SELECT `SUM((IF...', Array)
#7 /home/foucray/www/includes/src/__default.php(32961): Varien_Data_Collection_Db->_fetchAll('SELECT `SUM((IF...', Array)
#8 /home/foucray/www/includes/src/__default.php(32167): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#9 /home/foucray/www/includes/src/Mage_Adminhtml_Block_Dashboard_Sales.php(65): Varien_Data_Collection_Db->load()
#10 /home/foucray/www/includes/src/__default.php(1987): Mage_Adminhtml_Block_Dashboard_Sales->_prepareLayout()
#11 /home/foucray/www/includes/src/__default.php(28470): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#12 /home/foucray/www/includes/src/Mage_Adminhtml_Block_Dashboard.php(54): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...')
#13 /home/foucray/www/includes/src/__default.php(1987): Mage_Adminhtml_Block_Dashboard->_prepareLayout()
#14 /home/foucray/www/includes/src/__default.php(28470): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#15 /home/foucray/www/includes/src/__default.php(28486): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...', 'dashboard')
#16 /home/foucray/www/includes/src/__default.php(28253): Mage_Core_Model_Layout->addBlock('adminhtml/dashb...', 'dashboard')
#17 /home/foucray/www/includes/src/__default.php(28219): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#18 /home/foucray/www/includes/src/__default.php(28224): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#19 /home/foucray/www/includes/src/__default.php(14208): Mage_Core_Model_Layout->generateBlocks()
#20 /home/foucray/www/includes/src/__default.php(14133): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#21 /home/foucray/www/includes/src/Mage_Adminhtml_Controller_Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#22 /home/foucray/www/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(40): Mage_Adminhtml_Controller_Action->loadLayout()
#23 /home/foucray/www/includes/src/__default.php(14282): Mage_Adminhtml_DashboardController->indexAction()
#24 /home/foucray/www/includes/src/__default.php(18736): Mage_Core_Controller_Varien_Action->dispatch('index')
#25 /home/foucray/www/includes/src/__default.php(18266): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#26 /home/foucray/www/includes/src/__default.php(21094): Mage_Core_Controller_Varien_Front->dispatch()
#27 /home/foucray/www/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#28 /home/foucray/www/index.php(83): Mage::run('', 'store')
#29 {main}";s:3:"url";s:70:"/index.php/admin/dashboard/index/key/529ad69164288bc99941ffc9a231f04b/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}