-4

WordPress 数据库错误 您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册以获取正确的语法,以便在第 1 行的 '' 附近使用查询 SELECT count FROM wp_term_taxonomy WHERE term_id = made by require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp -blog-header.php'), require_once('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-includes\template-loader.php'), include('C:\inetpub\vhosts\sristudentsolutions.com \httpdocs\wp-content\themes\mesocolumn\front-page.php'), get_template_part, locate_template, load_template, require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-content\themes\mesocolumn\lib \templates\home-feat-cat.php'), dez_get_cat_post_count

WordPress 数据库错误 您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册以获取正确的语法,以便在第 1 行的 '' 附近使用查询 SELECT count FROM wp_term_taxonomy WHERE term_id = made by require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp -blog-header.php'), require_once('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-includes\template-loader.php'), include('C:\inetpub\vhosts\sristudentsolutions.com \httpdocs\wp-content\themes\mesocolumn\front-page.php'), get_template_part, locate_template, load_template, require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-content\themes\mesocolumn\lib \templates\home-feat-cat.php'), dez_get_cat_post_count

WordPress 数据库错误 您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册以获取正确的语法,以便在第 1 行的 '' 附近使用查询 SELECT count FROM wp_term_taxonomy WHERE term_id = made by require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp -blog-header.php'), require_once('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-includes\template-loader.php'), include('C:\inetpub\vhosts\sristudentsolutions.com \httpdocs\wp-content\themes\mesocolumn\front-page.php'), get_template_part, locate_template, load_template, require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-content\themes\mesocolumn\lib \templates\home-feat-cat.php'), dez_get_cat_post_count

WordPress 数据库错误 您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册以获取正确的语法,以便在第 1 行的 '' 附近使用查询 SELECT count FROM wp_term_taxonomy WHERE term_id = made by require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp -blog-header.php'), require_once('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-includes\template-loader.php'), include('C:\inetpub\vhosts\sristudentsolutions.com \httpdocs\wp-content\themes\mesocolumn\front-page.php'), get_template_part, locate_template, load_template, require('C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp-content\themes\mesocolumn\lib \templates\home-feat-cat.php'), dez_get_cat_post_count

我在表中也有计数列。这个错误的原因可能是什么。请尽快提供帮助。

4

1 回答 1

1

您执行的查询

SELECT count FROM wp_term_taxonomy WHERE term_id = 

最后错过term_id了。它应该看起来像这样:

SELECT `count` FROM wp_term_taxonomy WHERE term_id = 12345
于 2013-10-27T19:31:59.430 回答