Fatal error: Uncaught exception 'PDOException' with message '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 'ORDER BY sort asc LIMIT 1' at line 1' in /mnt/www/chuangyu/app/lib/Mysql.php:71
Stack trace:
#0 /mnt/www/chuangyu/app/lib/Mysql.php(71): PDO->prepare('SELECT id,name ...')
#1 /mnt/www/chuangyu/app/lib/Mysql.php(81): Mysql->query_result('SELECT id,name ...', NULL)
#2 /mnt/www/chuangyu/app/lib/Model.php(15): Mysql->queryrow('SELECT id,name ...')
#3 /mnt/www/chuangyu/app/controller/news_controller.php(89): Model->get('categorys', 'id=', 'id,name as name...', 'sort asc')
#4 [internal function]: NewsController->detail('2684')
#5 /mnt/www/chuangyu/app/controller/controller.php(83): call_user_func_array(Array, Array)
#6 /mnt/www/chuangyu/app/controller/controller.php(53): Controller->run('NewsController-...', Array)
#7 /mnt/www/chuangyu/app/route.php(12): Controller->dispatch('/det in /mnt/www/chuangyu/app/lib/Mysql.php on line 71