金沙(3777·China认证)娱场城-Best App Store

[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 'index ) LIMIT 1' 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 `yq_ar...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `yq_ar...', [], false, false) in Query.php line 2686
  4. at Query->find() in Base.php line 142
  5. at Base->position(null, 'article', 'index') in News.php line 177
  6. at News->getdetaileds('article', 'index') in News.php line 78
  7. at News->detailed()
  8. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  9. at App::invokeMethod([object(News), 'detailed'], []) in App.php line 611
  10. at App::module(['home', 'news', 'detailed'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...], false) in App.php line 456
  11. at App::exec(['type' => 'module', 'module' => ['home', 'news', 'detailed'], 'convert' => false], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/www/wwwroot/new.bge...') 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 '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 `yq_article` WHERE ( id = index ) LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database new_bgechina_cn
hostport 3306
dsn
params []
charset utf8
prefix yq_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
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
17jj4f21pukdbkgnvarmn3r6i2
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/news/detailed/index.html
QUERY_STRING
s=/news/detailed/index.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/news/detailed/index.html
REDIRECT_URL
/news/detailed/index.html
REMOTE_PORT
35482
SCRIPT_FILENAME
/www/wwwroot/new.bgechina.cn/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/new.bgechina.cn/public
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/new.bgechina.cn/public
REMOTE_ADDR
170.130.202.26
SERVER_PORT
443
SERVER_ADDR
172.21.134.116
SERVER_NAME
www.bgechina.cn
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
Apache Server at www.bgechina.cn Port 443
LD_LIBRARY_PATH
/www/server/apache/lib:/www/server/apache/lib
PATH
/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_COOKIE
PHPSESSID=17jj4f21pukdbkgnvarmn3r6i2
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.bgechina.cn
HTTP_USER_AGENT
Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.7049.52 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
proxy-nokeepalive
1
SSL_TLS_SNI
www.bgechina.cn
HTTPS
on
SCRIPT_URI
/news/detailed/index.html
SCRIPT_URL
/news/detailed/index.html
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.bgechina.cn
REDIRECT_HTTPS
on
REDIRECT_SCRIPT_URI
/news/detailed/index.html
REDIRECT_SCRIPT_URL
/news/detailed/index.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1744145834.9001
REQUEST_TIME
1744145834
PATH_INFO
/news/detailed/index.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/new.bgechina.cn/public/../application/
CONF_PATH
/www/wwwroot/new.bgechina.cn/public/../config/
THINK_VERSION
5.0.24
THINK_START_TIME
1744145834.9002
THINK_START_MEM
363840
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/new.bgechina.cn/thinkphp/
LIB_PATH
/www/wwwroot/new.bgechina.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/new.bgechina.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/new.bgechina.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/new.bgechina.cn/
EXTEND_PATH
/www/wwwroot/new.bgechina.cn/extend/
VENDOR_PATH
/www/wwwroot/new.bgechina.cn/vendor/
RUNTIME_PATH
/www/wwwroot/new.bgechina.cn/runtime/
LOG_PATH
/www/wwwroot/new.bgechina.cn/runtime/log/
CACHE_PATH
/www/wwwroot/new.bgechina.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/new.bgechina.cn/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PHP_OS_FAMILY
Linux