为了不扰乱会员对源码的测试,有问题咨询右侧客服不要直接回复,否则视为非法信息屏蔽会员ID! 小白求助
SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'xiaoniu.c.sort' which is not in SELECT list; this is incompatible with DISTINCT
错误位置
FILE: D:\phpstudy\WWW\ThinkPHP\Library\Think\Db\Driver.class.php LINE: 169
TRACE
#0 D:\phpstudy\WWW\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1 D:\phpstudy\WWW\Application\Home\Model\NodeModel.class.php(64): Think\Db\Driver->query('\t\tSELECT distin...')
#2 D:\phpstudy\WWW\Application\Home\Controller\HomeController.class.php(34): Home\Model\NodeModel->get_top_menu('1')
#3 D:\phpstudy\WWW\Application\Home\Controller\HomeController.class.php(24): Home\Controller\HomeController->_assign_menu()
#4 D:\phpstudy\WWW\ThinkPHP\Library\Think\Controller.class.php(41): Home\Controller\HomeController->_initialize()
#5 D:\phpstudy\WWW\ThinkPHP\Common\functions.php(679): Think\Controller->__construct()
#6 D:\phpstudy\WWW\ThinkPHP\Library\Think\App.class.php(89): controller('Index', '')
#7 D:\phpstudy\WWW\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#8 D:\phpstudy\WWW\ThinkPHP\Library\Think\Think.class.php(121): Think\App::run()
#9 D:\phpstudy\WWW\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#10 D:\phpstudy\WWW\index.php(25): require('D:\\phpstudy\\WWW...')
#11 {main}
这个问题怎么解决?
没有安装说明啊!! |