[10501] PDOException in Connection.php line 775

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 '1,2,4) ) AND `isrecycle` = ? AND `ischeck` = ? LIMIT 1' at line 1

  1. return Db::$executeTimes;
  2. }
  3. /**
  4. * 关闭数据库(或者重新连接)
  5. * @access public
  6. * @return $this
  7. */
  8. public function close()
  9. {
  10. $this->linkID = null;
  11. $this->linkWrite = null;
  12. $this->linkRead = null;
  13. $this->links = [];
  14. return $this;
  15. }
  16. /**
  17. * 是否断线

Call Stack

  1. in Connection.php line 775
  2. at Connection->query('SELECT COUNT(*) AS t...', ['where_isrecycle' => [0, 1], 'where_ischeck' => [1, 1]], false, true) in Query.php line 453
  3. at Query->query('SELECT COUNT(*) AS t...', ['where_isrecycle' => [0, 1], 'where_ischeck' => [1, 1]], false, true) in Query.php line 4533
  4. at Query->getPdo() in Query.php line 825
  5. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 1037
  6. at Query->count() in Query.php line 2679
  7. at Query->paginate(12, false, ['type' => 'Bootstrap3', 'var_page' => 'page', 'list_rows' => 10, ...]) in Product.php line 73
  8. at Product->getAllProductDataById(',1,2,4') in Product.php line 191
  9. at Product->lists()
  10. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 685
  11. at App::invokeMethod([object(Product), 'lists'], []) in App.php line 1221
  12. at App::module([null, 'product', 'lists'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], false) in App.php line 911
  13. at App::exec(['type' => 'module', 'module' => [null, 'product', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 277
  14. at App::run() in start.php line 18
  15. at require('D:\wwwroot\ahjiancha...') in index.php line 16

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 '1,2,4) ) AND `isrecycle` = ? AND `ischeck` = ? LIMIT 1' 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 '1,2,4) ) AND `isrecycle` = ? AND `ischeck` = ? LIMIT 1' at line 1
Error SQL SELECT COUNT(*) AS tp_count FROM `hope_product` WHERE ( cateid in (,1,2,4) ) AND `isrecycle` = 0 AND `ischeck` = 1 LIMIT 1
Database Config
type mysql
hostname 121.40.132.46
database ahgyjc
hostport
dsn
params []
charset utf8
prefix hope_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
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

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Users\Administrator\AppData\Roaming
CLIENTNAME
WIN-9M8VKJTM48G
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-IV66OGVBB4R
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
HOMEDRIVE
C:
HOMEPATH
\Users\Administrator
LOCALAPPDATA
C:\Users\Administrator\AppData\Local
LOGONSERVER
\\WIN-IV66OGVBB4R
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3e04
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SESSIONNAME
RDP-Tcp#0
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Users\ADMINI~1\AppData\Local\Temp\2
TMP
C:\Users\ADMINI~1\AppData\Local\Temp\2
USERDOMAIN
WIN-IV66OGVBB4R
USERNAME
Administrator
USERPROFILE
C:\Users\Administrator
windir
C:\Windows
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_CONNECTION
close
HTTP_X_FORWARDED_FOR
44.220.131.93
HTTP_X_REAL_IP
44.220.131.93
HTTP_HOST
www.ahjianchajing.com
REDIRECT_STATUS
200
SERVER_NAME
127.0.0.1
SERVER_PORT
8006
SERVER_ADDR
192.168.0.33
REMOTE_PORT
58372
REMOTE_ADDR
192.168.0.9
SERVER_SOFTWARE
nginx/1.15.11
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
D:/wwwroot/ahjianchajing.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/product/blc.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/product/blc.html
PATH_TRANSLATED
D:/wwwroot/ahjianchajing.com/public
PATH_INFO
/product/blc.html
SCRIPT_FILENAME
D:/wwwroot/ahjianchajing.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711660655.4319
REQUEST_TIME
1711660655
Environment Variables
empty

ThinkPHP Constants

PUBILC_PATH
D:\wwwroot\ahjianchajing.com\public/
APP_PATH
D:\wwwroot\ahjianchajing.com\public/../application/
THINK_VERSION
5.0.11
THINK_START_TIME
1711660655.4339
THINK_START_MEM
389344
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\ahjianchajing.com\thinkphp\
LIB_PATH
D:\wwwroot\ahjianchajing.com\thinkphp\library\
CORE_PATH
D:\wwwroot\ahjianchajing.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\ahjianchajing.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\ahjianchajing.com\
EXTEND_PATH
D:\wwwroot\ahjianchajing.com\extend\
VENDOR_PATH
D:\wwwroot\ahjianchajing.com\vendor\
RUNTIME_PATH
D:\wwwroot\ahjianchajing.com\runtime\
LOG_PATH
D:\wwwroot\ahjianchajing.com\runtime\log\
CACHE_PATH
D:\wwwroot\ahjianchajing.com\runtime\cache\
TEMP_PATH
D:\wwwroot\ahjianchajing.com\runtime\temp\
CONF_PATH
D:\wwwroot\ahjianchajing.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
1.693614s