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 'order by click_business desc limit 10' at line 1" SQL 语句: " select * from xinwen_sort join business on id_sort = item_business where state=0 and parent= order by click_business 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 'order by click_business desc limit 10' at line 1"
SQL 语句: " select  * from xinwen_sort join  business on id_sort = item_business where state=0 and parent= order by click_business desc limit 10"
SQL 错误代码: "7335941".' in E:\wwwroot\st_xh\FLEA\FLEA\Db\Driver\Mysql.php:126
Stack trace:
#0 E:\wwwroot\st_xh\FLEA\FLEA\Db\Driver\Abstract.php(544): FLEA_Db_Driver_Mysql->execute(' select  * from...')
#1 E:\wwwroot\st_xh\FLEA\FLEA\Db\TableDataGateway.php(702): FLEA_Db_Driver_Abstract->getAll(' select  * from...')
#2 E:\wwwroot\st_xh\APP\Controller\indexNews.php(106): FLEA_Db_TableDataGateway->findBySql(' select  * from...')
#3 E:\wwwroot\st_xh\FLEA\FLEA\Dispatcher\Simple.php(120): Controller_indexNews->actionShowContent()
#4 E:\wwwroot\st_xh\FLEA\FLEA\Dispatcher\Auth.php(127): FLEA_Dispatcher_Simple->_executeAction('indexNews', 'ShowContent', 'Controller_inde...')
#5 E:\wwwroot\st_xh\FLEA\FLEA.php(816): FLEA_Dispatcher_Auth->dispatching()
#6 E:\wwwroot\st_xh\index.php(12): 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 'order by click_business desc limit 10' at line 1" SQL 语句: " select * from xinwen_sort join business on id_sort = item_business where state=0 and parent= order by click_business desc limit 10" SQL 错误代码: "7335941".


Filename: E:\wwwroot\st_xh\FLEA\FLEA\Db\Driver\Abstract.php [544]
#7 FLEA_Db_Driver_Mysql::execute(' select * from xinwen_sort ...')

Filename: E:\wwwroot\st_xh\FLEA\FLEA\Db\TableDataGateway.php [702]
#6 FLEA_Db_Driver_Abstract::getAll(' select * from xinwen_sort ...')

Filename: E:\wwwroot\st_xh\APP\Controller\indexNews.php [106]
#5 FLEA_Db_TableDataGateway::findBySql(' select * from xinwen_sort ...')

Filename: E:\wwwroot\st_xh\FLEA\FLEA\Dispatcher\Simple.php [120]
#4 Controller_indexNews::actionShowContent()

Filename: E:\wwwroot\st_xh\FLEA\FLEA\Dispatcher\Auth.php [127]
#3 FLEA_Dispatcher_Simple::_executeAction('indexNews', 'ShowContent', 'Controller_indexNews')

Filename: E:\wwwroot\st_xh\FLEA\FLEA.php [816]
#2 FLEA_Dispatcher_Auth::dispatching()

Filename: E:\wwwroot\st_xh\index.php [12]
#1 FLEA::runMVC()