Php wordpress数据库:mysql 1064

Php wordpress数据库:mysql 1064,php,mysql,database,wordpress,Php,Mysql,Database,Wordpress,WordPress数据库错误您的SQL语法有错误;检查与您的MySQL服务器版本对应的手册,以获得在第1行附近使用的正确语法,用于查询wp_term_分类法中的SELECT count,其中term_id=made by require'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp blog header.php',需要一次'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp i

WordPress数据库错误您的SQL语法有错误;检查与您的MySQL服务器版本对应的手册,以获得在第1行附近使用的正确语法,用于查询wp_term_分类法中的SELECT count,其中term_id=made by require'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp blog header.php',需要一次'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp includes\template loader.php',包括'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\front page.php',获取模板部分,定位模板,加载模板,需要'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\lib\templates\home feat cat.php',dez_get_cat_post_count

WordPress数据库错误您的SQL语法有错误;检查与您的MySQL服务器版本对应的手册,以获得在第1行附近使用的正确语法,用于查询wp_term_分类法中的SELECT count,其中term_id=made by require'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp blog header.php',需要一次'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp includes\template loader.php',包括'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\front page.php',获取模板部分,定位模板,加载模板,需要'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\lib\templates\home feat cat.php',dez_get_cat_post_count

WordPress数据库错误您的SQL语法有错误;检查与您的MySQL服务器版本对应的手册,以获得在第1行附近使用的正确语法,用于查询wp_term_分类法中的SELECT count,其中term_id=made by require'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp blog header.php',需要一次'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp includes\template loader.php',包括'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\front page.php',获取模板部分,定位模板,加载模板,需要'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\lib\templates\home feat cat.php',dez_get_cat_post_count

WordPress数据库错误您的SQL语法有错误;检查与您的MySQL服务器版本对应的手册,以获得在第1行附近使用的正确语法,用于查询wp_term_分类法中的SELECT count,其中term_id=made by require'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp blog header.php',需要一次'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp includes\template loader.php',包括'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\front page.php',获取模板部分,定位模板,加载模板,需要'C:\inetpub\vhosts\sristudentsolutions.com\httpdocs\wp content\themesocolumn\lib\templates\home feat cat.php',dez_get_cat_post_count

表中也有count列。这一错误的原因可能是什么。请尽快提供帮助。

您执行的查询

SELECT count FROM wp_term_taxonomy WHERE term_id = 
未命中是最后的实际术语id。它应该是这样的:

SELECT `count` FROM wp_term_taxonomy WHERE term_id = 12345

我在表中有一个计数列。这些错误的其他原因可能是什么?请用解决方案说明。@KiranRaj请阅读更新后的答案。我已经用您要求的更改测试了错误查询。但是没有用。它在我的本地服务器上运行良好,没有任何更改,但当我在线上传站点时,出现了此错误。这就是我的新主人的问题吗?请访问并向下滚动。此外,尽管count不是保留字,但使用这样的关键字我只是想找麻烦这是wordpress的模板,我所做的只是编辑和FTP。这个问题似乎脱离主题,因为它只是作为问题粘贴的错误消息,不努力格式化它或识别问题。