[10501] PDOException in Connection.php line 385

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 ',,,,,,) and status=1 ) ORDER BY sort asc,id desc LIMIT 6' at line 1

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false, '', $master);
  4. // 返回结果集
  5. return $this->getResult($pdo, $procedure);
  6. } catch (\PDOException $e) {
  7. if ($this->isBreak($e)) {
  8. return $this->close()->query($sql, $bind, $master, $pdo);
  9. }
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. } catch (\Throwable $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. } catch (\Exception $e) {
  17. if ($this->isBreak($e)) {
  18. return $this->close()->query($sql, $bind, $master, $pdo);
  19. }

Call Stack

  1. in Connection.php line 385
  2. at Connection->query('SELECT * FROM `sent_...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `sent_...', [], false, false) in Query.php line 2523
  4. at Query->select() in 53a63bd0c47d6298ba0ffff6850cc56b.php line 99
  5. at include('/www/wwwroot/jiminat...') in File.php line 53
  6. at File->read('/www/wwwroot/jiminat...', ['CATEGORYS' => [['id' => 1, 'name' => '', 'alias' => '', ...], ['id' => 2, 'name' => '', 'alias' => '', ...], ['id' => 3, 'name' => '', 'alias' => '', ...], ...], 'model_name' => 'special', 'model_id' => 10, ...]) in Template.php line 188
  7. at Template->fetch('./template/default/c...', ['CATEGORYS' => [['id' => 1, 'name' => '', 'alias' => '', ...], ['id' => 2, 'name' => '', 'alias' => '', ...], ['id' => 3, 'name' => '', 'alias' => '', ...], ...], 'model_name' => 'special', 'model_id' => 10, ...], []) in Think.php line 86
  8. at Think->fetch('./template/default/c...', ['CATEGORYS' => [['id' => 1, 'name' => '', 'alias' => '', ...], ['id' => 2, 'name' => '', 'alias' => '', ...], ['id' => 3, 'name' => '', 'alias' => '', ...], ...], 'model_name' => 'special', 'model_id' => 10, ...], []) in View.php line 163
  9. at View->fetch('content/special/deta...', ['CATEGORYS' => [['id' => 1, 'name' => '', 'alias' => '', ...], ['id' => 2, 'name' => '', 'alias' => '', ...], ['id' => 3, 'name' => '', 'alias' => '', ...], ...], 'model_name' => 'special', 'model_id' => 10, ...], ['__ROOT__' => '', '__URL__' => '/index/content', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  10. at Controller->fetch('content/special/deta...') in Content.php line 310
  11. at Content->detail('9', '')
  12. at ReflectionMethod->invokeArgs(object(Content), ['9', '']) in App.php line 343
  13. at App::invokeMethod([object(Content), 'detail'], []) in App.php line 611
  14. at App::module(['index', 'content', 'detail'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...], false) in App.php line 456
  15. at App::exec(['type' => 'module', 'module' => ['index', 'content', 'detail'], 'convert' => false], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 18
  17. at require('/www/wwwroot/jiminat...') in index.php line 24

Exception Datas

PDO Error Info
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 ',,,,,,) and status=1 ) ORDER BY sort asc,id desc LIMIT 6' at line 1
Database Status
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 ',,,,,,) and status=1 ) ORDER BY sort asc,id desc LIMIT 6' at line 1
Error SQL SELECT * FROM `sent_product` WHERE ( id in (,,,,,,,) and status=1 ) ORDER BY sort asc,id desc LIMIT 6
Database Config
type mysql
hostname 127.0.0.1
database sentcms
hostport 3306
dsn
params []
charset utf8
prefix sent_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict false
result_type 2
resultset_type array
auto_timestamp true
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.jiminate.cn
PATH_INFO
//special/detail/9.html
REDIRECT_STATUS
200
SERVER_NAME
www.jiminate.cn
SERVER_PORT
443
SERVER_ADDR
172.18.1.46
REMOTE_PORT
60732
REMOTE_ADDR
54.226.222.183
SERVER_SOFTWARE
nginx/1.21.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/jiminate/web
DOCUMENT_URI
/index.php
REQUEST_URI
/special/detail/9.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//special/detail/9.html
SCRIPT_FILENAME
/www/wwwroot/jiminate/web/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710846990.0572
REQUEST_TIME
1710846990
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/jiminate/web/../application/
BASE_PATH
RUNTIME_PATH
/www/wwwroot/jiminate/web/../data/
THINK_VERSION
5.0.23
THINK_START_TIME
1710846990.0578
THINK_START_MEM
375160
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/jiminate/framework/
LIB_PATH
/www/wwwroot/jiminate/framework/library/
CORE_PATH
/www/wwwroot/jiminate/framework/library/think/
TRAIT_PATH
/www/wwwroot/jiminate/framework/library/traits/
ROOT_PATH
/www/wwwroot/jiminate/
PUBLIC_PATH
/www/wwwroot/jiminate/web/
EXTEND_PATH
/www/wwwroot/jiminate/extend/
VENDOR_PATH
/www/wwwroot/jiminate/vendor/
LOG_PATH
/www/wwwroot/jiminate/web/../data/log/
CACHE_PATH
/www/wwwroot/jiminate/web/../data/cache/
TEMP_PATH
/www/wwwroot/jiminate/web/../data/temp/
CONF_PATH
/www/wwwroot/jiminate/web/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
SENTCMS_VERSION
3.6.201803
SENT_ADDON_PATH
/www/wwwroot/jiminate/application/../addons/