尝试以magento保存产品时出错

时间:2016-10-14 06:05:39

标签: sql magento syntax-error

每当我尝试对产品进行任何更改并将其保存在magento后端时,我都会收到以下错误。

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ) AND (p.entity_id = '1696') LIMIT 1' at line 3, query was: SELECT DISTINCT p.entity_id FROM `catalog_product_entity` AS `p` INNER JOIN `catalog_product_flat_1` AS `cpf` ON cpf.entity_id = p.entity_id LEFT JOIN `catalog_category_product` AS `ccp` ON ccp.product_id = p.entity_id WHERE ( () ) AND (p.entity_id = '1696') LIMIT 1

请让我知道出了什么问题,我该如何解决这个问题。

1 个答案:

答案 0 :(得分:0)

数据库catalog_product_flat_1表中存在一些不一致之处,请清空所有平面表并尝试。请在清空表之前先备份。