Database SQL: "SELECT * FROM test_user WHERE `uid` = :uid LIMIT 1", ErrorInfo: Table 'sst.test_user' doesn't exist

347.              }
348.          }
349. 
350.          if($sth->execute())return $readonly ? $sth->fetchAll(PDO::FETCH_ASSOC) : $sth->rowCount();
351.          $err = $sth->errorInfo();
352.          err('Database SQL: "' . $sql. '", ErrorInfo: '. $err[2], 1);
353.      }
354.      
355.      public function dbInstance($db_config, $db_config_key, $force_replace = false){
356.          if($force_replace || empty($GLOBALS['mysql_instances'][$db_config_key])){
357.              try {
319.              }
320.          }
321.          return $this->page;
322.      }
323.      
324.      public function query($sql, $params = array()){return $this->execute($sql, $params, true);}
325.      public function execute($sql, $params = array(), $readonly = false){
326.          $this->sql[] = $sql;
327. 
328.          if($readonly && !empty($GLOBALS['mysql']['MYSQL_SLAVE'])){
329.              $slave_key = array_rand($GLOBALS['mysql']['MYSQL_SLAVE']);
240.              $limit = $this->pager($limit[0], $limit[1], $limit[2], $total[0]['M_COUNTER']);
241.              $limit = empty($limit) ? '' : ' LIMIT '.$limit['offset'].','.$limit['limit'];            
242.          }else{
243.              $limit = !empty($limit) ? ' LIMIT '.$limit : '';
244.          }
245.          return $this->query('SELECT '. $fields . $sql . $sort . $limit, $conditions["_bindParams"]);
246.      }
247.      
248.      public function find($conditions = array(), $sort = null, $fields = '*'){
249.          $res = $this->findAll($conditions, $sort, $fields, 1);
250.          return !empty($res) ? array_pop($res) : false;
244.          }
245.          return $this->query('SELECT '. $fields . $sql . $sort . $limit, $conditions["_bindParams"]);
246.      }
247.      
248.      public function find($conditions = array(), $sort = null, $fields = '*'){
249.          $res = $this->findAll($conditions, $sort, $fields, 1);
250.          return !empty($res) ? array_pop($res) : false;
251.      }
252.      
253.      public function update($conditions, $row){
254.          $values = array();
49.      
50.      // 查找findAll/find
51.      function actionFind(){
52.          $user = new User();
53.          // 先查一条,uid为2的
54.          $this->findone = $user->find(array("uid"=>"2"));
55.          
56.          // 查全部,用findAll
57.          // findAll( $conditions=array(), $order=null, $field='*',  $limit=null )
58.          // findAll参数:$conditions数组形式的条件(同find),$field指定字段(默认是*),
59.          // $order是排序(如 “uid DESC”), $limit是限定条数(如“3,5”,第三条开始取五条)
96.  if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
97.  if(!class_exists($controller_name, true))_err_router("Err: Controller '$controller_name' is not exists!");
98.  if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
99. 
100.  $controller_obj = new $controller_name();
101.  $controller_obj->$action_name();
102. 
103.  if($controller_obj->_auto_display){
104.      $auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
105.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
106.  }
26.  header('Access-Control-Allow-Headers: *');
27.  header('Access-Control-Max-Age: 86400');
28. 
29.  define('APP_DIR', realpath('./'));
30.  define("APP_PATH", dirname(__FILE__));
31.  require(APP_DIR.'/protected/lib/speed.php');