:(

102:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]'`' 附近有语法错误。 [ SQL语句 ] : SELECT T1.* FROM (SELECT thinkphp.*, ROW_NUMBER() OVER ( ORDER BY sort asc) AS ROW_NUMBER FROM (SELECT [id] FROM [tp_region] WHERE ( parent_id=0 AND level=1 AND (`region_name` LIKE '%甘肃%' OR `region_name` LIKE '%宁夏%' OR `region_name` LIKE '%青海%' OR `region_name` LIKE '%陕西%') ) ) AS thinkphp) AS T1

错误位置

FILE: E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

#0 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('102:[Microsoft]...')
#1 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()
#2 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\Db\Driver.class.php(946): Think\Db\Driver->query('SELECT T1.* FRO...', false)
#3 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#4 E:\wwwroot\www.029-china.cn\Application\Service\WeChatService.class.php(25): Think\Model->select()
#5 E:\wwwroot\www.029-china.cn\Application\Wx\Controller\IndexController.class.php(409): Service\WeChatService->select_region1('parent_id=0 AND...', 'id', 'sort')
#6 [internal function]: Wx\Controller\IndexController->wx_exhibition()
#7 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Wx\Controller\IndexController))
#8 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Wx\Controller\IndexController), 'wx_exhibition')
#9 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#10 E:\wwwroot\www.029-china.cn\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#11 E:\wwwroot\www.029-china.cn\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#12 E:\wwwroot\www.029-china.cn\index.php(25): require('E:\\wwwroot\\www....')
#13 {main}