应用补丁后,我在加载订单屏幕时出现此问题:
a:5:{i:0;s:783:"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'IFNULL(at_prX_status.value, def_at_prX_status.value)' in 'where clause', query was: SELECT COUNT(*) FROM `sales_flat_order_grid` AS `main_table`
LEFT JOIN `sales_flat_order_item` AS `auit_oit` ON (main_table.entity_id = auit_oit.order_id and auit_oit.parent_item_id IS NULL)
LEFT JOIN `catalog_product_entity_int` AS `at_prX_status` ON auit_oit.product_id = at_prX_status.entity_id and at_prX_status.attribute_id = 96 and at_prX_status.store_id=main_table.store_id
LEFT JOIN `catalog_product_entity_int` AS `def_at_prX_status` ON auit_oit.product_id = def_at_prX_status.entity_id and def_at_prX_status.attribute_id = 96 and def_at_prX_status.store_id=0 WHERE (`IFNULL(at_prX_status.value, def_at_prX_status.value)` = '1')";i:1;s:6831:"#0 public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
我查看了提及“auit'并检查任何sql语句,如
$collection->addFieldToFilter('`
但是我找不到任何东西。
我还能怎样解决这个问题?自补丁以来有没有人碰到这个?
感谢。