[10501] PDOException in Connection.php line 388

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'create_time' in 'order clause'

  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 `id`,`name`,`...', ['where_id' => ['370700', 1]], false, false) in Query.php line 225
  3. at Query->query('SELECT `id`,`name`,`...', ['where_id' => ['370700', 1]], false, false) in Query.php line 2475
  4. at Query->find() in ModelBase.php line 175
  5. at ModelBase->getInfo(['id' => '370700']) in Areacustomlm.php line 318
  6. at Areacustomlm->getregion(['id' => '370700']) in Index.php line 144
  7. at Index->catelist('370700', '2')
  8. at ReflectionMethod->invokeArgs(object(Index), ['370700', '2']) in App.php line 196
  9. at App::invokeMethod([object(Index), 'catelist'], []) in App.php line 415
  10. at App::module(['index', 'index', 'catelist'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 295
  11. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'catelist']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  12. at App::run() in start.php line 58
  13. at require('/www/wwwroot/sd.cctv...') in public.php line 29
  14. at require('/www/wwwroot/sd.cctv...') in index.php line 16

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'create_time' in 'order clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'create_time' in 'order clause'
Error SQL SELECT `id`,`name`,`level`,`upid`,`status` FROM `ob_region` WHERE `id` = 370700 ORDER BY create_time desc LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database ds_cnwtvcn_com
hostport 3306
dsn
params []
charset utf8
prefix ob_
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 true
builder
query \think\db\Query
break_reconnect false
sys_data_key rT2naZ)ws^D0&@bPc7z$J!9gyE]ou{4NQK8/[eIm