:(

1064: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 != and cid = 2 ) ORDER BY sortrank asc,addtime desc LIMIT 1' at line 1 [ SQL语句 ] : SELECT `id`,`title`,`sortrank`,`addtime` FROM `ows_product` WHERE ( sortrank

错误位置

FILE: /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 351

TRACE

#0 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/Db/Driver.class.php(351): E('1064:You have a...')
#1 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/Db/Driver.class.php(947): Think\Db\Driver->query('SELECT `id`,`ti...', false)
#3 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/Model.class.php(762): Think\Db\Driver->select(Array)
#4 /www/wwwroot/jsows.cn/Application/Home/Controller/ArticleController.class.php(53): Think\Model->find()
#5 [internal function]: Home\Controller\ArticleController->index()
#6 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\ArticleController))
#7 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\ArticleController), 'index')
#8 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#9 /www/wwwroot/jsows.cn/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#10 /www/wwwroot/jsows.cn/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#11 /www/wwwroot/jsows.cn/index.php(26): require('/www/wwwroot/js...')
#12 {main}