[10501] PDOException in Connection.php line 391

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 ') )' 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 391
  2. at Connection->query('SELECT `name` FROM `...', [], false, true) in Query.php line 227
  3. at Query->query('SELECT `name` FROM `...', [], false, true) in Query.php line 2267
  4. at Query->getPdo() in Query.php line 462
  5. at Query->column('name') in common.php line 573
  6. at get_value('mobile_arg_val', '', '', '', 'name', '', ' id in ()', 'column') in 8050ecf060a54686585d65e4f19e2ef8.php line 257
  7. at include('/www/wwwobject/test/...') in File.php line 50
  8. at File->read('/www/wwwobject/test/...', ['site' => ['name' => '运营商财经网', 'beian' => '', 'cdnurl' => '', ...], 'config' => ['site' => ['name' => '运营商财经网', 'cdnurl' => '', 'version' => 1711626748, ...], 'upload' => ['cdnurl' => '', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], 'request' => ['id' => '30'], ...]) in Template.php line 197
  9. at Template->fetch('/www/wwwobject/test/...', ['site' => ['name' => '运营商财经网', 'beian' => '', 'cdnurl' => '', ...], 'config' => ['site' => ['name' => '运营商财经网', 'cdnurl' => '', 'version' => 1711626748, ...], 'upload' => ['cdnurl' => '', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], 'request' => ['id' => '30'], ...], []) in Think.php line 84
  10. at Think->fetch('', ['site' => ['name' => '运营商财经网', 'beian' => '', 'cdnurl' => '', ...], 'config' => ['site' => ['name' => '运营商财经网', 'cdnurl' => '', 'version' => 1711626748, ...], 'upload' => ['cdnurl' => '', 'uploadurl' => 'ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], 'request' => ['id' => '30'], ...], []) in View.php line 159
  11. at View->fetch() in Show.php line 381
  12. at Show->mobile()
  13. at ReflectionMethod->invokeArgs(object(Show), []) in App.php line 197
  14. at App::invokeMethod([object(Show), 'mobile'], []) in App.php line 411
  15. at App::module(['index', 'show', 'mobile'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  16. at App::exec(['type' => 'module', 'module' => ['index', 'show', 'mobile'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  17. at App::run() in start.php line 19
  18. at require('/www/wwwobject/test/...') in index.php line 29

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 ') )' 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 ') )' at line 1
Error SQL SELECT `name` FROM `fa_mobile_arg_val` WHERE ( id in () )
Database Config
type mysql
hostname 192.168.0.252,192.168.0.251
database yyssj_co,yyssj_co
hostport 3306,3306
dsn
params { "12": false }
charset utf8
prefix fa_
debug false
deploy 1
rw_separate true
master_num 1
slave_no
fields_strict false
result_type 2
resultset_type collection
auto_timestamp false
datetime_format false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "session_url": "\/show-phone-30.html" }

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwobject/test/cfyys.com.cn/public/index.php
QUERY_STRING
s=/show-phone-30.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/show-phone-30.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwobject/test/cfyys.com.cn/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.22.0
REMOTE_ADDR
44.200.249.42
REMOTE_PORT
59602
SERVER_ADDR
192.168.0.2
SERVER_PORT
80
SERVER_NAME
www.cfyys.com.cn
REDIRECT_STATUS
200
PATH_INFO
/show-phone-30.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
cfyys.com.cn
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711626748.3104
REQUEST_TIME
1711626748
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwobject/test/cfyys.com.cn/public/../application/
THINK_VERSION
5.0.11
THINK_START_TIME
1711626748.3113
THINK_START_MEM
261440
EXT
.php
DS
/
THINK_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/
LIB_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/
CORE_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwobject/test/cfyys.com.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwobject/test/cfyys.com.cn/
EXTEND_PATH
/www/wwwobject/test/cfyys.com.cn/extend/
VENDOR_PATH
/www/wwwobject/test/cfyys.com.cn/vendor/
RUNTIME_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/
LOG_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/log/
CACHE_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/cache/
TEMP_PATH
/www/wwwobject/test/cfyys.com.cn/runtime/temp/
CONF_PATH
/www/wwwobject/test/cfyys.com.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwobject/test/cfyys.com.cn/addons/