新时代_中国赌城亚洲最佳|欢迎您

[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 ') ORDER BY `sortid`,`id` DESC' 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 `id` FROM `ne...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT `id` FROM `ne...', [], false, false) in Query.php line 2523
  4. at Query->select() in Shownews.php line 22
  5. at Shownews->index()
  6. at ReflectionMethod->invokeArgs(object(Shownews), []) in App.php line 343
  7. at App::invokeMethod([object(Shownews), 'index'], []) in App.php line 611
  8. at App::module(['index', 'shownews', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'shownews', '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('/www/wwwroot/kelante...') 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 ') ORDER BY `sortid`,`id` DESC' 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 ') ORDER BY `sortid`,`id` DESC' at line 1
Error SQL SELECT `id` FROM `news` WHERE ( typeid= ) ORDER BY `sortid`,`id` DESC
Database Config
type mysql
hostname localhost
database kelantec_cn
hostport 3306
dsn
params []
charset utf8
prefix
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
al7e36dmau0047kp3es4d1qf85
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=al7e36dmau0047kp3es4d1qf85
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.kelantec.cn
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
/shownews/ctid/8/tid/2/id/showcase/ctid/59/tid/22/id/18.html
REDIRECT_STATUS
200
SERVER_NAME
kelantec.cn
SERVER_PORT
80
SERVER_ADDR
172.17.255.214
REMOTE_PORT
50942
REMOTE_ADDR
107.164.4.34
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/kelantec.cn
DOCUMENT_URI
/index.php
REQUEST_URI
/shownews/ctid/8/tid/2/id/showcase/ctid/59/tid/22/id/18.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/shownews/ctid/8/tid/2/id/showcase/ctid/59/tid/22/id/18.html
SCRIPT_FILENAME
/www/wwwroot/kelantec.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1586557340.6679
REQUEST_TIME
1586557340
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/kelantec.cn/application/
SESSION_PATH
/www/wwwroot/kelantec.cn/runtime/session/
THINK_VERSION
5.0.24
THINK_START_TIME
1586557340.6684
THINK_START_MEM
369312
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/kelantec.cn/thinkphp/
LIB_PATH
/www/wwwroot/kelantec.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/kelantec.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/kelantec.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/kelantec.cn/
EXTEND_PATH
/www/wwwroot/kelantec.cn/extend/
VENDOR_PATH
/www/wwwroot/kelantec.cn/vendor/
RUNTIME_PATH
/www/wwwroot/kelantec.cn/runtime/
LOG_PATH
/www/wwwroot/kelantec.cn/runtime/log/
CACHE_PATH
/www/wwwroot/kelantec.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/kelantec.cn/runtime/temp/
CONF_PATH
/www/wwwroot/kelantec.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Baidu
sogou