2015-07-21 69 views
-1

清除緩存後,我的PrestaShop網站給出這樣的錯誤:的Prestashop-未知列'cl.id_shop 'where子句'

[PrestaShopDatabaseException] Unknown column 'cl.id_shop' in 'where clause'

SELECT cl.`meta_title`, cl.`link_rewrite` 
     FROM `ps_cms_lang` cl 
     INNER JOIN `ps_cms` c 
     ON (cl.`id_cms` = c.`id_cms`) 
     WHERE cl.`id_cms` = 1 
     AND (c.`active` = 1 OR c.`id_cms` = 1) 
     AND cl.`id_shop` = 1 
     AND cl.`id_lang` = 1 LIMIT 1 
+0

可能是您的列名稱與您在查詢中使用的名稱不同。請分享表格結構 –

回答

0

執行以下查詢:

ALTER TABLE `ps_cms_lang` ADD `id_shop` int NOT NULL DEFAULT 1 AFTER `id_lang`