WP_query调用触发错误

时间:2013-11-07 18:11:42

标签: php wordpress

我看了很多主题,在插件中,我无法弄清楚在哪里搞乱了。

WordPress数据库错误您的SQL语法中有错误;检查与MySQL服务器版本对应的手册,以便在'%men \'s%'附近使用正确的语法)或(ec_posts.post_content LIKE'%men \'s%')))AND(ec_posts.post_pass'at at第2行查询SELECT SQL_CALC_FOUND_ROWS ec_posts.ID FROM ec_posts INNER JOIN ec_postmeta ON(ec_posts.ID = ec_postmeta.post_id)\ nINNER JOIN ec_postmeta AS mt1 ON(ec_posts.ID = mt1.post_id)WHERE 1 = 1 AND(((ec_posts。 post_title LIKE'%men \')OR(post_excerpt LIKE'%men \'s%')OR(ec_posts.post_content LIKE'%men \'s%')))AND(ec_posts.post_password ='')AND ec_posts。 post_type ='product'AND(ec_posts.post_status ='publish')AND((ec_postmeta.meta_key ='_ visible“AND CAST(ec_postmeta.meta_value AS CHAR)IN('visible','search'))\ nAND(mt1。 meta_key ='_ stock_status'AND CAST(mt1.meta_value AS CHAR)='instock'))GROUP BY ec_posts.ID ORDER BY ec_posts.menu_order,ec_posts.post_title ASC LIMIT 0,48 / *来自[domain.com/?s=男人%27s& post_type = product]在[/nas/wp/www/cluster-1340/domain/index.php :17] * /由require('wp-blog-header.php'),wp,WP-> main,WP-> query_posts,WP_Query-> query,WP_Query-> get_posts,referer:{{ 3}}

我无法找到此错误的来源。

0 个答案:

没有答案