SELECT COUNT(id) AS SP_COUNTER FROM qf_self WHERE Array and visible = 1
执行错误: Unknown column 'Array' in 'where clause'

77.      {
78.          $this->arrSql[] = $sql;
79.          if( $result mysql_query($sql$this->conn) ){
80.              return $result;
81.          }else{
82.              spError("{$sql}<br />执行错误: " mysql_error());
83.          }
84.      }
85.      
86.      /**
87.       返回影响行数
21.       
22.       * @param sql  执行的SQL语句
23.       */
24.      public function getArray($sql)
25.      {
26.          if( ! $result $this->exec($sql) )return array();
27.          if( ! mysql_num_rows($result) )return array();
28.          $rows = array();
29.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.          mysql_free_result($result);
31.          array_pop($rows);
252.              $where "WHERE ".join(" AND ",$join);
253.          }else{
254.              if(null != $conditions)$where "WHERE ".$conditions;
255.          }
256.          $sql "SELECT COUNT({$this->pk}) AS SP_COUNTER FROM {$this->tbl_name} {$where}";
257.          $result $this->_db->getArray($sql);
258.          return $result[0]['SP_COUNTER'];
259.      }
260. 
261.      /**
262.       魔术函数,执行模型扩展类的自动加载及使用
766.              }
767.              return $run_result;
768.          }elseif(in_array($func_name$GLOBALS['G_SP']["auto_load_model"])){
769.              return spClass($func_name)->__input($this$func_args);
770.            }else{
771.              return call_user_func_array(array($this->model_obj$func_name), $func_args);
772.          }
773.      }
774. 
775.      /** 
776.       私有函数,辅助删除数据操作
587.          //实例化表模型
588.          $obj_self spClass('m_self');
589.          //导入自定义分页类
590.          import('page.class.php');
591.          //实例化分页
592.          $page = new Page($obj_self->spLinker()->findCount($condition_self),6);
593.          $this->list $obj_self->findAll($condition_self,"orders ASC,id DESC",null,$page->limit);
594.          $this->pager $page->fpage(4,5,6,1,0,3);
595.          $this->page $page->curpage();
596.          $this->counts $page->total();
597.          //输出模板
587.          //实例化表模型
588.          $obj_self spClass('m_self');
589.          //导入自定义分页类
590.          import('page.class.php');
591.          //实例化分页
592.          $page = new Page($obj_self->spLinker()->findCount($condition_self),6);
593.          $this->list $obj_self->findAll($condition_self,"orders ASC,id DESC",null,$page->limit);
594.          $this->pager $page->fpage(4,5,6,1,0,3);
595.          $this->page $page->curpage();
596.          $this->counts $page->total();
597.          //输出模板
16.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
17.          eval($GLOBALS['G_SP']["dispatcher_error"]);
18.          exit;
19.      }
20.      // 路由并执行用户代码
21.      $handle_controller->$__action();
22.      // 控制器程序运行完毕,进行模板的自动输出
23.      if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
24.          $__tplname $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
25.                  $__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
26.          $handle_controller->auto_display($__tplname);
11.  //加载配置文件
12.  require(APP_PATH.'/data/config.php');
13.  //加载框架核心
14.  require(SP_PATH.'/SpeedPHP.php');
15.  //执行应用
16.  spRun();