云顶国际集团 - 欢迎莅临

[10501] PDOException in Connection.php line 388

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 '5,1,2,3,4,6,7,8,9,10,11,12) ) AND `isrecycle` = ? AND `ischeck` = ? LIMIT 1' at line 1

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false);
  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 (\Exception $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. }
  17. }
  18. /**

Call Stack

  1. in Connection.php line 388
  2. at Connection->query('SELECT COUNT(*) AS t...', ['where_isrecycle' => [0, 1], 'where_ischeck' => [1, 1]], false, true) in Query.php line 227
  3. at Query->query('SELECT COUNT(*) AS t...', ['where_isrecycle' => [0, 1], 'where_ischeck' => [1, 1]], false, true) in Query.php line 2267
  4. at Query->getPdo() in Query.php line 413
  5. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 519
  6. at Query->count() in Query.php line 1340
  7. at Query->paginate(12, false, ['type' => 'Bootstrap3', 'var_page' => 'page', 'list_rows' => 10, ...]) in Product.php line 37
  8. at Product->getAllProductDataById(',5,1,2,3,4,6,7,8,9,1...') in Product.php line 32
  9. at Product->lists()
  10. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 343
  11. at App::invokeMethod([object(Product), 'lists'], []) in App.php line 611
  12. at App::module([null, 'product', 'lists'], ['app_host' => '', 'app_debug' => 1, 'app_trace' => false, ...], false) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => [null, 'product', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => 1, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 18
  15. at require('/www/wwwroot/www.ahj...') in index.php line 17

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 '5,1,2,3,4,6,7,8,9,10,11,12) ) 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 '5,1,2,3,4,6,7,8,9,10,11,12) ) AND `isrecycle` = ? AND `ischeck` = ? LIMIT 1' at line 1
Error SQL SELECT COUNT(*) AS tp_count FROM `hope_product` WHERE ( cateid in (,5,1,2,3,4,6,7,8,9,10,11,12) ) AND `isrecycle` = 0 AND `ischeck` = 1 LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database www_ahjly_cn
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

PHPSESSID
rp8ari805dfsh72v4d957nshj0
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=rp8ari805dfsh72v4d957nshj0
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.ahjly.cn
HTTP_USER_AGENT
serpstatbot/2.1 (advanced backlink tracking bot; https://serpstatbot.com/; abuse@serpstatbot.com)
PATH_INFO
/product/http:/www.hfhello.com
REDIRECT_STATUS
200
SERVER_NAME
www.ahjly.cn
SERVER_PORT
80
SERVER_ADDR
172.20.209.245
REMOTE_PORT
60576
REMOTE_ADDR
45.38.32.2
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.ahjly.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
//product/http%EF%BC%9A/www.hfhello.com
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/product/http%EF%BC%9A/www.hfhello.com
SCRIPT_FILENAME
/www/wwwroot/www.ahjly.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1726410285.1157
REQUEST_TIME
1726410285
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.ahjly.cn/public/../application/
THINK_VERSION
5.0.11
THINK_START_TIME
1726410285.1162
THINK_START_MEM
409104
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.ahjly.cn/thinkphp/
LIB_PATH
/www/wwwroot/www.ahjly.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/www.ahjly.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.ahjly.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.ahjly.cn/
EXTEND_PATH
/www/wwwroot/www.ahjly.cn/extend/
VENDOR_PATH
/www/wwwroot/www.ahjly.cn/vendor/
RUNTIME_PATH
/www/wwwroot/www.ahjly.cn/runtime/
LOG_PATH
/www/wwwroot/www.ahjly.cn/runtime/log/
CACHE_PATH
/www/wwwroot/www.ahjly.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/www.ahjly.cn/runtime/temp/
CONF_PATH
/www/wwwroot/www.ahjly.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Baidu
sogou