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 product_id != ORDER BY rand() LIMIT 4' at line 3" SQL 语句: "SELECT `en_product`.`product_id` AS flea_pkref_product_id, `en_product`.* FROM `en_product` WHERE productcat_id= AND product_id != ORDER BY rand() LIMIT 4" 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 product_id !=  ORDER BY rand()
LIMIT 4' at line 3"
SQL 语句: "SELECT `en_product`.`product_id` AS flea_pkref_product_id, `en_product`.*
FROM `en_product`
WHERE productcat_id= AND product_id !=  ORDER BY rand()
LIMIT 4"
SQL 错误代码: "7335941".' in /usr/local/apache/htdocs/FLEA/FLEA/Db/Exception/SqlQuery.php:55

#0 /usr/local/apache/htdocs/FLEA/FLEA/Db/Driver/Mysql.php(230): flea_db_exception_sqlquery('SELECT `en_product`.`produc ...', 'You have an error in your S ...', 1064)
#1 /usr/local/apache/htdocs/FLEA/FLEA/Db/Driver/Mysql.php(459): execute('SELECT `en_product`.`produc ...')
#2 /usr/local/apache/htdocs/FLEA/FLEA/Db/TableDataGateway.php(395): selectlimit('SELECT `en_product`.`produc ...', 4, )
#3 /usr/local/apache/htdocs/APP/NewController/Default.php(308): findall('productcat_id= AND product_ ...', , 4)
#4 /usr/local/apache/htdocs/FLEA/FLEA/Dispatcher/Simple.php(127): actionprshow()
#5 /usr/local/apache/htdocs/FLEA/FLEA/Dispatcher/Auth.php(127): _executeaction('Default', 'Prshow', 'NewController_Default')
#6 /usr/local/apache/htdocs/FLEA/FLEA.php(644): dispatching()
#7 /usr/local/apache/htdocs/index.php(41): 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 product_id != ORDER BY rand() LIMIT 4' at line 3" SQL 语句: "SELECT `en_product`.`product_id` AS flea_pkref_product_id, `en_product`.* FROM `en_product` WHERE productcat_id= AND product_id != ORDER BY rand() LIMIT 4" SQL 错误代码: "7335941".


Filename: /usr/local/apache/htdocs/FLEA/FLEA/Db/Driver/Mysql.php
#8 flea_db_exception_sqlquery::flea_db_exception_sqlquery('SELECT `en_product`.`produc ...', 'You have an error in your S ...', 1064)

Filename: /usr/local/apache/htdocs/FLEA/FLEA/Db/Driver/Mysql.php
#7 flea_db_driver_mysql::execute('SELECT `en_product`.`produc ...')

Filename: /usr/local/apache/htdocs/FLEA/FLEA/Db/TableDataGateway.php
#6 flea_db_driver_mysql::selectlimit('SELECT `en_product`.`produc ...', 4, )

Filename: /usr/local/apache/htdocs/APP/NewController/Default.php
#5 table_producten::findall('productcat_id= AND product_ ...', , 4)

Filename: /usr/local/apache/htdocs/FLEA/FLEA/Dispatcher/Simple.php
#4 newcontroller_default::actionprshow()

Filename: /usr/local/apache/htdocs/FLEA/FLEA/Dispatcher/Auth.php
#3 flea_dispatcher_auth::_executeaction('Default', 'Prshow', 'NewController_Default')

Filename: /usr/local/apache/htdocs/FLEA/FLEA.php
#2 flea_dispatcher_auth::dispatching()

Filename: /usr/local/apache/htdocs/index.php
#1 flea::runmvc()