SQL 错误消息: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and tid!=81 ORDER BY created desc LIMIT 3' at line 3" SQL 语句: "SELECT `comments`.`tid` AS flea_pkref_tid, `comments`.* FROM `comments` WHERE authorid= and tid!=81 ORDER BY created desc LIMIT 3" SQL 错误代码: "7335941".

错误原因:

您看到这个错误页面是因为应用程序抛出了没有捕获的异常。

异常的详细内容: exception 'flea_db_exception_sqlquery' with message 'SQL 错误消息: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and tid!=81
ORDER BY created desc
LIMIT 3' at line 3"
SQL 语句: "SELECT `comments`.`tid` AS flea_pkref_tid, `comments`.*
FROM `comments`
WHERE authorid= and tid!=81
ORDER BY created desc
LIMIT 3"
SQL 错误代码: "7335941".' in /var/www/html/hsj/home/FLEA/FLEA/Db/Exception/SqlQuery.php:55

#0 /var/www/html/hsj/home/FLEA/FLEA/Db/Driver/Mysql.php(230): flea_db_exception_sqlquery('SELECT `comments`.`tid` AS  ...', 'You have an error in your S ...', 1064)
#1 /var/www/html/hsj/home/FLEA/FLEA/Db/Driver/Mysql.php(459): execute('SELECT `comments`.`tid` AS  ...')
#2 /var/www/html/hsj/home/FLEA/FLEA/Db/TableDataGateway.php(395): selectlimit('SELECT `comments`.`tid` AS  ...', '3', )
#3 /var/www/html/hsj/home/APP/Controller/Comment.php(65): findall('authorid= and tid!=81', 'created desc', '3')
#4 /var/www/html/hsj/home/FLEA/FLEA/Dispatcher/Simple.php(127): actionshow()
#5 /var/www/html/hsj/home/FLEA/FLEA/Dispatcher/Simple.php(77): _executeaction('Comment', 'show', 'Controller_Comment')
#6 /var/www/html/hsj/home/FLEA/FLEA.php(621): dispatching()
#7 /var/www/html/hsj/home/home.php(42): runmvc()
#8 {main}

Exception: flea_db_exception_sqlquery
Message: SQL 错误消息: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and tid!=81 ORDER BY created desc LIMIT 3' at line 3" SQL 语句: "SELECT `comments`.`tid` AS flea_pkref_tid, `comments`.* FROM `comments` WHERE authorid= and tid!=81 ORDER BY created desc LIMIT 3" SQL 错误代码: "7335941".


Filename: /var/www/html/hsj/home/FLEA/FLEA/Db/Driver/Mysql.php
#8 flea_db_exception_sqlquery::flea_db_exception_sqlquery('SELECT `comments`.`tid` AS ...', 'You have an error in your S ...', 1064)

Filename: /var/www/html/hsj/home/FLEA/FLEA/Db/Driver/Mysql.php
#7 flea_db_driver_mysql::execute('SELECT `comments`.`tid` AS ...')

Filename: /var/www/html/hsj/home/FLEA/FLEA/Db/TableDataGateway.php
#6 flea_db_driver_mysql::selectlimit('SELECT `comments`.`tid` AS ...', '3', )

Filename: /var/www/html/hsj/home/APP/Controller/Comment.php
#5 model_comments::findall('authorid= and tid!=81', 'created desc', '3')

Filename: /var/www/html/hsj/home/FLEA/FLEA/Dispatcher/Simple.php
#4 controller_comment::actionshow()

Filename: /var/www/html/hsj/home/FLEA/FLEA/Dispatcher/Simple.php
#3 flea_dispatcher_simple::_executeaction('Comment', 'show', 'Controller_Comment')

Filename: /var/www/html/hsj/home/FLEA/FLEA.php
#2 flea_dispatcher_simple::dispatching()

Filename: /var/www/html/hsj/home/home.php
#1 flea::runmvc()