:(

SQLSTATE[42000]: Syntax error or access violation: 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 ') LIMIT 1' at line 1

错误位置

FILE: /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/Db/Driver.class.php(935): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#2 /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/Model.class.php(962): Think\Db\Driver->select(Array)
#3 /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/Model.class.php(227): Think\Model->getField('COUNT(*) AS tp_...')
#4 /raid/vhost/quatek.com.hk/www/Apps/En/Controller/ProductController.class.php(13): Think\Model->__call('count', Array)
#5 /raid/vhost/quatek.com.hk/www/Apps/En/Controller/ProductController.class.php(13): Think\Model->count()
#6 [internal function]: En\Controller\ProductController->index()
#7 /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(En\Controller\ProductController))
#8 /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/App.class.php(202): Think\App::exec()
#9 /raid/vhost/quatek.com.hk/www/YongsyCORE/Library/Think/Think.class.php(120): Think\App::run()
#10 /raid/vhost/quatek.com.hk/www/YongsyCORE/ThinkPHP.php(97): Think\Think::start()
#11 /raid/vhost/quatek.com.hk/www/index.php(25): require('/raid/vhost/qua...')
#12 {main}