think\db\exception\PDOException {#474
#data: array:3 [
"PDO Error Info" => array:3 [
"SQLSTATE" => "42000"
"Driver Error Code" => 1064
"Driver Error Message" => "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 ') ASC LIMIT 3' at line 1"
]
"Database Status" => array:3 [
"Error Code" => 10501
"Error 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 ') ASC LIMIT 3' at line 1"
"Error SQL" => "SELECT * FROM `cn_zz_product` WHERE `id` = 0 AND `status` = 1 AND `recycle` = 0 AND `drafts` = 0 AND `verify` = 1 AND `verify_status` = 2 ORDER BY field(id, ) ASC LIMIT 3"
]
"Database Config" => array:21 [
"type" => "mysql"
"hostname" => "127.0.0.1"
"database" => "new_web_cn"
"hostport" => "3306"
"dsn" => ""
"params" => []
"charset" => "utf8mb4"
"prefix" => ""
"deploy" => 0
"rw_separate" => false
"master_num" => 1
"slave_no" => ""
"read_master" => false
"fields_strict" => true
"fields_cache" => false
"trigger_sql" => true
"builder" => ""
"query" => ""
"break_reconnect" => false
"break_match_str" => []
"auto_param_bind" => true
]
]
#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 ') ASC LIMIT 3' at line 1"
#code: 10501
#file: "/home/wwwroot/new_web.cn/vendor/topthink/think-orm/src/db/PDOConnection.php"
#line: 861
trace: {
/home/wwwroot/new_web.cn/vendor/topthink/think-orm/src/db/PDOConnection.php:861 {
think\db\PDOConnection->getPDOStatement(string $sql, array $bind = [], bool $master = false, bool $procedure = false): PDOStatement …
› }
› throw new PDOException($e, $this->config, $this->getLastsql());
› } else {
}
/home/wwwroot/new_web.cn/vendor/topthink/think-orm/src/db/PDOConnection.php:768 {
think\db\PDOConnection->pdoQuery(BaseQuery $query, $sql, bool $master = null): array …
›
› $this->getPDOStatement($sql, $bind, $master, $procedure);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/think-orm/src/db/PDOConnection.php:998 {
think\db\PDOConnection->select(BaseQuery $query): array …
› return $this->builder->select($query);
› });
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/think-orm/src/db/BaseQuery.php:1523 {
think\db\BaseQuery->select(array $data = []): Collection …
›
› $resultSet = $this->connection->select($this);
›
}
/home/wwwroot/new_web.cn/app/common/util/Cms.php:262 {
app\common\util\Cms->lists($def = true) …
› } else {
› $lists = $query->select();
› }
}
/home/wwwroot/new_web.cn/runtime/cms/view/e35ca87cab5ea5069bca724793ce2f5c07fe2c3bbe1165f4c8ec863d4395a3f8.php:24 {
require …
› $cms->order("field(id, " . implode(',', $aid) . ") ASC");
› $lists = $cms->limit(3)->lists();
› $comparisons = [];
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/PhpEngine.php:92 {
Illuminate\View\Engines\PhpEngine::Illuminate\View\Engines\{closure} …
›
› return require $__path;
› })();
arguments: {
"/home/wwwroot/new_web.cn/runtime/cms/view/e35ca87cab5ea5069bca724793ce2f5c07fe2c3bbe1165f4c8ec863d4395a3f8.php"
}
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/PhpEngine.php:93 {
Illuminate\View\Engines\PhpEngine->getRequire($path, array $data = []) …
› return require $__path;
› })();
› }
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/PhpEngine.php:48 {
Illuminate\View\Engines\PhpEngine->evaluatePath($path, $data) …
› try {
› $this->getRequire($path, $data);
› } catch (Throwable $e) {
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/CompilerEngine.php:75 {
Illuminate\View\Engines\CompilerEngine->get($path, array $data = []) …
› try {
› $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
› } catch (ViewException $e) {
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/View.php:195 {
Illuminate\View\View->getContents() …
› {
› return $this->engine->get($this->path, $this->gatherData());
› }
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/View.php:178 {
Illuminate\View\View->renderContents() …
›
› $contents = $this->getContents();
›
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/View.php:147 {
Illuminate\View\View->render(callable $callback = null) …
› try {
› $contents = $this->renderContents();
›
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/Blade.php:130 {
think\view\driver\Blade->fetch(string $template, array $data = []): void …
›
› echo $this->blade->file($templatePath, $data)->render();
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/View.php:91 {
think\View->think\{closure} …
› return $this->getContent(function () use ($vars, $template) {
› $this->engine()->fetch($template, array_merge($this->data, $vars));
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/View.php:123 {
think\View->getContent($callback): string …
› try {
› $callback();
› } catch (\Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/View.php:92 {
think\View->fetch(string $template = '', array $vars = []): string …
› $this->engine()->fetch($template, array_merge($this->data, $vars));
› });
› }
}
think\View->fetch() {}
/home/wwwroot/new_web.cn/vendor/topthink/think-container/src/Facade.php:97 {
think\Facade::__callStatic($method, $params) …
› {
› return call_user_func_array([static::createFacade(), $method], $params);
› }
}
/home/wwwroot/new_web.cn/app/cms/controller/Base.php:83 {
app\cms\controller\Base->fetch($template = ''): string …
› // View::config(['view_theme' => $this->website_prefix]);\r
› return View::fetch($template);\r
› \r
}
/home/wwwroot/new_web.cn/app/cms/controller/Index.php:64 {
app\cms\controller\Index->comparison() …
› ]);
› return $this->fetch('comparison');
› }
}
app\cms\controller\Index->comparison() {}
/home/wwwroot/new_web.cn/vendor/topthink/think-container/src/Container.php:348 {
think\Container->invokeReflectMethod($instance, $reflect, array $vars = []) …
›
› return $reflect->invokeArgs($instance, $args);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/Dispatch.php:178 {
think\route\Dispatch->think\route\{closure} …
›
› $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/Dispatch.php:181 {
think\route\Dispatch->responseWithMiddlewarePipeline($instance, $action) …
› return $this->autoResponse($data);
› });
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php:88 {
think\route\dispatch\Controller->exec() …
›
› return $this->responseWithMiddlewarePipeline($instance, $this->actionName);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/Dispatch.php:56 {
think\route\Dispatch->run(): Response …
› {
› $data = $this->exec();
› return $this->autoResponse($data);
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Route.php:713 {
think\Route->think\{closure} …
› ->then(function () use ($dispatch) {
› return $dispatch->run();
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Route.php:714 {
think\Route->dispatch(Request $request, Closure|bool $withRoute = true) …
› return $dispatch->run();
› });
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:208 {
think\Http->dispatchToRoute($request) …
›
› return $this->app->route->dispatch($request, $withRoute);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:198 {
think\Http->think\{closure} …
› ->then(function ($request) {
› return $this->dispatchToRoute($request);
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/think-multi-app/src/MultiApp.php:51 {
think\app\MultiApp->think\app\{closure} …
› ->then(function ($request) use ($next) {
› return $next($request);
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/think-multi-app/src/MultiApp.php:52 {
think\app\MultiApp->handle($request, Closure $next) …
› return $next($request);
› });
› }
}
think\app\MultiApp->handle() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php:58 {
think\middleware\SessionInit->handle(Request $request, Closure $next): Response …
› /** @var Response $response */
› $response = $next($request);
›
}
think\middleware\SessionInit->handle() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/middleware/LoadLangPack.php:53 {
think\middleware\LoadLangPack->handle(Request $request, Closure $next): Response …
›
› return $next($request);
› }
}
think\middleware\LoadLangPack->handle() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/think-trace/src/TraceDebug.php:71 {
think\trace\TraceDebug->handle($request, Closure $next) …
›
› $response = $next($request);
›
}
think\trace\TraceDebug->handle() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:199 {
think\Http->runWithRequest(Request $request) …
› return $this->dispatchToRoute($request);
› });
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:162 {
think\Http->run(Request $request = null): Response …
› try {
› $response = $this->runWithRequest($request);
› } catch (Throwable $e) {
}
/home/wwwroot/new_web.cn/public/index.php:21 {
› \r
› $response = $http->run();\r
› \r
}
}
}