[10501] PDOException in Connection.php line 384

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 'index ) LIMIT 1' at line 1

  1. $this->bindValue($bind);
  2. }
  3. // 执行查询
  4. $this->PDOStatement->execute();
  5. // 调试结束
  6. $this->debug(false);
  7. // 返回结果集
  8. return $this->getResult($pdo, $procedure);
  9. } catch (\PDOException $e) {
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. }
  12. }
  13. /**
  14. * 执行语句
  15. * @access public
  16. * @param string $sql sql指令
  17. * @param array $bind 参数绑定
  18. * @return int

Call Stack

  1. in Connection.php line 384
  2. at Connection->query('SELECT * FROM `tsd_n...', [], false, false) in Query.php line 226
  3. at Query->query('SELECT * FROM `tsd_n...', [], false, false) in Query.php line 2394
  4. at Query->find() in Cpyy.php line 47
  5. at Cpyy->cpyy('index')
  6. at ReflectionMethod->invokeArgs(object(Cpyy), ['index']) in App.php line 224
  7. at App::invokeMethod([object(Cpyy), 'cpyy'], []) in App.php line 391
  8. at App::module(['Home', 'cpyy', 'cpyy'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => true, ...], true) in App.php line 130
  9. at App::run() in start.php line 18
  10. at require('/data/user/htdocs/th...') in index.php line 19

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 'index ) 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 'index ) LIMIT 1' at line 1
Error SQL SELECT * FROM `tsd_news` WHERE ( id =index ) LIMIT 1
Database Config
type mysql
hostname bdm721874187.my3w.com
database bdm721874187_db
username bdm721874187
password Tsd20230628
hostport 3306
dsn
params []
charset utf8
prefix tsd_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER nobody
HOME /
HTTP_HOST tsd-semicon.com
HTTP_REFERER http://tsd-semicon.com/public/index.php/Home/cpyy/cpyy/id/index.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME tsd-semicon.com
SERVER_PORT 443
SERVER_ADDR 10.21.6.12
REMOTE_PORT 59928
REMOTE_ADDR 44.200.49.193
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/user/htdocs
DOCUMENT_URI /public/index.php/Home/cpyy/cpyy/id/index.html
REQUEST_URI /public/index.php/Home/cpyy/cpyy/id/index.html
SCRIPT_NAME /public/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
PATH_INFO /Home/cpyy/cpyy/id/index.html
SCRIPT_FILENAME /data/user/htdocs/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /public/index.php/Home/cpyy/cpyy/id/index.html
REQUEST_TIME_FLOAT 1711706852.3745
REQUEST_TIME 1711706852
Environment Variablesempty
ThinkPHP Constants
__ROOT__ /public
APP_PATH /data/user/htdocs/public/../application/
THINK_VERSION 5.0.5
THINK_START_TIME 1711706852.3746
THINK_START_MEM 364328
EXT .php
DS /
THINK_PATH /data/user/htdocs/thinkphp/
LIB_PATH /data/user/htdocs/thinkphp/library/
CORE_PATH /data/user/htdocs/thinkphp/library/think/
TRAIT_PATH /data/user/htdocs/thinkphp/library/traits/
ROOT_PATH /data/user/htdocs/
EXTEND_PATH /data/user/htdocs/extend/
VENDOR_PATH /data/user/htdocs/vendor/
RUNTIME_PATH /data/user/htdocs/runtime/
LOG_PATH /data/user/htdocs/runtime/log/
CACHE_PATH /data/user/htdocs/runtime/cache/
TEMP_PATH /data/user/htdocs/runtime/temp/
CONF_PATH /data/user/htdocs/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
JINGLING_VERSION 1.0
JINGLING_ADDON_PATH /data/user/htdocs//addons/