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 id !=133 ORDER BY id desc LIMIT 10' at line 1" SQL 语句: "SELECT `ab_articles`.* FROM `ab_articles` WHERE type = and id !=133 ORDER BY id desc LIMIT 10" 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 id !=133  ORDER BY id desc LIMIT 10' at line 1"
SQL 语句: "SELECT  `ab_articles`.* FROM `ab_articles`  WHERE type =  and id !=133  ORDER BY id desc LIMIT 10"
SQL 错误代码: "7335941".' in D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Db\Driver\Mysql.php:126
Stack trace:
#0 D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Db\Driver\Mysql.php(187): FLEA_Db_Driver_Mysql->execute('SELECT  `ab_art...')
#1 D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Db\TableDataGateway.php(446): FLEA_Db_Driver_Mysql->selectLimit('SELECT  `ab_art...', 10, NULL)
#2 D:\wwwroot\zhirong1230\wwwroot\xinli\APP\Controller\News.php(548): FLEA_Db_TableDataGateway->findAll('type =  and id ...', 'id desc', 10)
#3 D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Dispatcher\Simple.php(120): Controller_News->actionread()
#4 D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Dispatcher\Simple.php(77): FLEA_Dispatcher_Simple->_executeAction('News', 'read', 'Controller_News')
#5 D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA.php(816): FLEA_Dispatcher_Simple->dispatching()
#6 D:\wwwroot\zhirong1230\wwwroot\xinli\index.php(20): FLEA::runMVC()
#7 {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 id !=133 ORDER BY id desc LIMIT 10' at line 1" SQL 语句: "SELECT `ab_articles`.* FROM `ab_articles` WHERE type = and id !=133 ORDER BY id desc LIMIT 10" SQL 错误代码: "7335941".


Filename: D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Db\Driver\Mysql.php [187]
#7 FLEA_Db_Driver_Mysql::execute('SELECT `ab_articles`.* FRO ...')

Filename: D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Db\TableDataGateway.php [446]
#6 FLEA_Db_Driver_Mysql::selectLimit('SELECT `ab_articles`.* FRO ...', 10, )

Filename: D:\wwwroot\zhirong1230\wwwroot\xinli\APP\Controller\News.php [548]
#5 FLEA_Db_TableDataGateway::findAll('type = and id !=133', 'id desc', 10)

Filename: D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Dispatcher\Simple.php [120]
#4 Controller_News::actionread()

Filename: D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA\Dispatcher\Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction('News', 'read', 'Controller_News')

Filename: D:\wwwroot\zhirong1230\wwwroot\xinli\LIB\FLEA\FLEA.php [816]
#2 FLEA_Dispatcher_Simple::dispatching()

Filename: D:\wwwroot\zhirong1230\wwwroot\xinli\index.php [20]
#1 FLEA::runMVC()