SELECT pics FROM dy_classtype WHERE tid = '1' ORDER BY tid LIMIT 1
执行错误: Unknown column 'pics' in 'field list'

34.          $this->arrSql[] = $sql;
35.          if( $result mysql_query($sql$this->conn) ){
36.              return $result;
37.          }else{
38.              if(mysql_error()!=''){
39.                  syError("{$sql}<br />执行错误: " mysql_error());
40.              }else{
41.                  return TRUE;
42.              }
43.          }
44.      }
3.  class db_mysql {
4.      public $conn;
5.      public $arrSql;
6.      public function getArray($sql)
7.      {
8.          if( ! $result $this->exec($sql) )return array();
9.          if( ! mysql_num_rows($result) )return array();
10.          $rows = array();
11.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
12.          mysql_free_result($result);
13.          array_pop($rows);
50.          }else{
51.              $sort "ORDER BY {$this->pk}";
52.          }
53.          $sql "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
54.          if(null != $limit)$sql $this->_db->setlimit($sql$limit);
55.          return $this->_db->getArray($sql);
56.      }
57. 
58.      public function escape($value)
59.      {
60.          return $this->_db->__val_escape($value);
22.          if ($this->_db->showtables($value)==0){return TRUE;}else{return FALSE;}
23.      }
24.      
25.      public function find($conditions null$sort null$fields null)
26.      {
27.          if( $record $this->findAll($conditions$sort$fields1) ){
28.              return array_pop($record);
29.          }else{
30.              return FALSE;
31.          }
32.      }
443.      return $t[$uname];
444.  }
445. 
446.  //栏目信息
447.  function typeinfo($tid,$q){
448.      $t=syDB('classtype')->find(array('tid' => $tid),null,$q);
449.      return $t[$q];
450.  }
451.  //自定义标签
452.  function labelcus($id,$q){
453.      $l=syClass('c_labelcus')->syCache(3600*240)->find(array('id' => $id));
59.                  <?php ?>
60.                </ul>
61.              </div>
62.              <div class="l percent70">
63.                <div class="cont"
64.                   <div class="picshow"><a href="javascript:;" title="<?php echo $v['classname'?>"><img src="<?php echo typeinfo($v['tid'],'pics'?>" alt="<?php echo $v['classname'?>"  width="340px" height="150px"/></a>
65.                  </div>
66. 
67.                  <div class="t"><?php echo $v['classname'?></div>
68.                  <p>
69.                   <a href="<?php echo $v['url'?>"><?php echo $v['description'?></a>
61.          if( $enable_gzip==){
62.              GLOBAL $__template_compression_level;
63.              $__template_compression_level=syExt('enable_gzip_level');
64.              ob_start('template_ob_gzip');
65.          }
66.          include $template_tpl;
67.      }
68.      
69.      private function template_html($content){
70.          preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
71.          foreach($i[0] as $k=>$v){
23.      {
24.          try {
25.                  $this->addfuncs();
26.                  $this->displayed TRUE;
27.                  if($GLOBALS['G_DY']['view']['debugging'] && SP_DEBUG)$this->engine->debugging TRUE;
28.                  $this->engine->display($tplname);
29.          } catch (Exception $e) {
30.              syError$GLOBALS['G_DY']['view']['engine_name']. ' Error: '.$e->getMessage() );
31.          }
32.      }
33. 
25. 
26.      public function display($tplname$output TRUE)
27.      {
28.          @ob_start();
29.          if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
30.              $this->v->display($tplname);
31.          }else{
32.              extract($this->__template_vals);
33.              require($tplname);
34.          }
35.          if( TRUE != $output )return ob_get_clean();
115.          $type_pos=$this->sy_class_type->navi($tid);
116.          foreach($type_pos as $v){
117.              $d_pos=syDB('classtype')->find(array('tid'=>$v['tid']),null,'tid,molds,htmldir,htmlfile,mrank');
118.              $this->positions.='  &gt;  <a href="'.html_url('classtype',$d_pos).'">'.$v['classname'].'</a>';
119.          }
120.          $this->display('article/'.$t);
121.      }
122.      function hits(){
123.          if($this->syArgs('id')){
124.              syDB('article')->incrField(array('id'=>$this->syArgs('id')), 'hits');
125.              $hits=syDB('article')->find(array('id'=>$this->syArgs('id')),null,'hits');
11.      $handle_controller syClass($__controllernull$GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
12.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
13.          syError('route Error');
14.          exit;
15.      }
16.      $handle_controller->$__action();
17.      if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
18.          $__tplname $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
19.                  $__action.$GLOBALS['G_DY']['view']['auto_display_suffix']; 
20.          $handle_controller->auto_display($__tplname);
21.      }
28.  $doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];    
29.  }
30. 
31. 
32.  require(DOYO_PATH."/sys.php");
33.  spRun();