MySQL Wordpress数据库where子句错误

时间:2016-02-20 00:01:30

标签: php mysql database wordpress

我知道这已被问了很多次,我浏览了一些帖子,但找不到解决我问题的方法。如果有人可以帮助我理解问题是什么,不知道如何解决这个问题。

我得到了很多WP DB error unknown column in 'where clause' for query SELECT。试图理解它似乎源于我的woocommerce产品名称或我的W3总缓存插件的错误?

错误1:

  

WordPress数据库错误'where子句'中的未知列'tter.name'   查询SELECT xxx_posts.ID FROM xxx_posts INNER JOIN   xxx_postmeta ON(xxx_posts.ID = xxx_postmeta.post_id)WHERE 1 = 1 AND   (((((xxx_posts.post_title LIKE'%journals%')或   (xxx_posts.post_content LIKE'%journals%')))OR((tter.name LIKE   '%journals%'))OR((tter.slug LIKE'%journals%'))或   ((ttax.description LIKE'%journals%'))))和   (xxx_posts.post_password ='')AND(         (xxx_postmeta.meta_key ='_ visibleibility'AND CAST(xxx_postmeta.meta_value AS CHAR)IN('visible','search'))       )AND xxx_posts.post_type ='product'AND((xxx_posts.post_status ='publish'))GROUP BY xxx_posts.ID ORDER BY xxx_posts.post_date由DES制作的DESC('wp-blog-header.php'),wp,WP - >主,   do_action_ref_array,call_user_func_array,   WC_Query-> get_products_in_view,get_posts,WP_Query->查询,   WP_Query-> get_posts,W3_Db->查询,W3_DbCache->查询,   W3_DbCallUnderlying->查询,W3_Db->查询,W3_DbProcessor->查询,   W3_Db-> default_query

错误2:

  

WordPress数据库错误'where子句'中的未知列'tter.name'   查询SELECT xxx_posts.ID FROM xxx_posts INNER JOIN   xxx_postmeta ON(xxx_posts.ID = xxx_postmeta.post_id)WHERE 1 = 1 AND   (((((xxx_posts.post_title LIKE'%Banks%')或(xxx_posts.post_content   LIKE'%Banks%')))OR((tter.name LIKE'%Banks%'))OR((tter.slug LIKE   '%banks%')OR((ttax.description LIKE'%Banks%'))))和   (xxx_posts.post_password ='')AND(         (xxx_postmeta.meta_key ='_ visibleibility'AND CAST(xxx_postmeta.meta_value AS CHAR)IN('visible','search'))       )AND xxx_posts.post_type ='product'AND((xxx_posts.post_status ='publish'))GROUP BY xxx_posts.ID ORDER BY xxx_posts.post_date由DES制作的DESC('wp-blog-header.php'),wp,WP - >主,   do_action_ref_array,call_user_func_array,   WC_Query-> get_products_in_view,get_posts,WP_Query->查询,   WP_Query-> get_posts,W3_Db->查询,W3_DbCache->查询,   W3_DbCallUnderlying->查询,W3_Db->查询,W3_DbProcessor->查询,   W3_Db-> default_query

0 个答案:

没有答案