葡萄京官方网站-首页

[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 'AND pid= ) ORDER BY `orders` ASC,`create_time` DESC 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 `app_a...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `app_a...', [], false, false) in Query.php line 2686
  4. at Query->find() in Page.php line 20
  5. at Page->index()
  6. at ReflectionMethod->invokeArgs(object(Page), []) in App.php line 343
  7. at App::invokeMethod([object(Page), 'index'], []) in App.php line 611
  8. at App::module(['index', 'Page', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'Page', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/usr/home/hyu7870120...') in index.php line 28

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 'AND pid= ) ORDER BY `orders` ASC,`create_time` DESC 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 'AND pid= ) ORDER BY `orders` ASC,`create_time` DESC LIMIT 1' at line 1
Error SQL SELECT * FROM `app_article` WHERE ( create_time> AND pid= ) ORDER BY `orders` ASC,`create_time` DESC LIMIT 1
Database Config
type mysql
hostname hdm721900629.my3w.com
database hdm721900629_db
hostport 3306
dsn
params []
charset utf8
prefix app_
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 true
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

PHPSESSID
30p381j71ivfe87hf1vle199k0
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/hyu7870120001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=30p381j71ivfe87hf1vle199k0
HTTP_HOST
www.vommatec.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)
PATH
/bin
PHPRC
/var/www/php70/hichina_ini/hyu7870120001
QUERY_STRING
REDIRECT_DOCUMENT_ROOT
/usr/home/hyu7870120001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
gzip
REDIRECT_HTTP_COOKIE
PHPSESSID=30p381j71ivfe87hf1vle199k0
REDIRECT_HTTP_HOST
www.vommatec.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
/91/96.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php/91/96.html/96.html
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
107.187.251.26
REDIRECT_REMOTE_PORT
43714
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/page/91/96.html
REDIRECT_SCRIPT_FILENAME
/usr/home/hyu7870120001/htdocs/page
REDIRECT_SCRIPT_NAME
/page
REDIRECT_SERVER_ADDR
10.17.252.106
REDIRECT_SERVER_ADMIN
webmaster@hyu7870120001.my3w.com
REDIRECT_SERVER_NAME
www.vommatec.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
YekaeQoR-GoAI7HvA@gAAAAE
REDIRECT_URL
/page/91/96.html
REMOTE_ADDR
107.187.251.26
REMOTE_PORT
43714
REQUEST_METHOD
GET
REQUEST_URI
/page/91/96.html
SCRIPT_FILENAME
/usr/home/hyu7870120001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.17.252.106
SERVER_ADMIN
webmaster@hyu7870120001.my3w.com
SERVER_NAME
www.vommatec.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
YekaeQoR-GoAI7HvA@gAAAAE
ORIG_PATH_INFO
/page/91/96.html
ORIG_PATH_TRANSLATED
/usr/home/hyu7870120001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1642666617.2992
REQUEST_TIME
1642666617
PATH_INFO
/page/91/96.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/hyu7870120001/htdocs/application/
WXPAY_PATH
/usr/home/hyu7870120001/htdocs/vendor
THINK_VERSION
5.0.24
THINK_START_TIME
1642666617.2999
THINK_START_MEM
351352
EXT
.php
DS
/
THINK_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/
LIB_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/hyu7870120001/htdocs/
EXTEND_PATH
/usr/home/hyu7870120001/htdocs/extend/
VENDOR_PATH
/usr/home/hyu7870120001/htdocs/vendor/
RUNTIME_PATH
/usr/home/hyu7870120001/htdocs/runtime/
LOG_PATH
/usr/home/hyu7870120001/htdocs/runtime/log/
CACHE_PATH
/usr/home/hyu7870120001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/hyu7870120001/htdocs/runtime/temp/
CONF_PATH
/usr/home/hyu7870120001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Baidu
sogou