SELECT * FROM zc_category WHERE catid in () ORDER BY catid
执行错误: 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 ') ORDER BY catid' at line 1

65.      {
66.          $this->arrSql[] = $sql;
67.          if( $result mysql_query($sql$this->conn) ){
68.              return $result;
69.          }else{
70.              spError("{$sql}<br />执行错误: " mysql_error());
71.          }
72.      }
73.      
74.      /**
75.       返回影响行数
22.       * @param sql  执行的SQL语句
23.       */
24.      public function getArray($sql)
25.      {
26.          
27.          if( ! $result $this->exec($sql) )return array();
28.          if( ! mysql_num_rows($result) )return array();
29.          
30.          $rows = array();
31.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
32.          
100.              $sort "ORDER BY {$this->pk}";
101.          }
102.          $sql "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
103.          if(null != $limit)$sql $this->_db->setlimit($sql$limit);
104.          
105.          return $this->_db->getArray($sql);
106.      }
107.      /**
108.       过滤转义字符
109.       *
110.       * @param value 需要进行过滤的值
41.          $pid explode(",",$resulta["arrparentid"]);
42.          $this->sidenid $sidenid = (== $resulta["parentid"])?$a:$pid["2"];
43.          
44.          $this->resultSide spClass("catalog")->getCatalogList($sidenid);//侧栏二级栏目数组    
45.          
46.          $this->path $this->DB_CATE->findAll("catid in (".$resulta["arrparentid"].")");//目录路径
47.          
48.          $this->pagekey = ($pid["3"])?$pid["3"]:$pid["2"];
49.          
50.          $this->pageColor "menu_h";
51.      }
144.          }
145.      }
146.      if(FALSE != $has_define){
147.          $argString '';$comma ''
148.          if(null != $args)for ($i 0$i count($args); $i ++) { $argString .= $comma "\$args[$i]"$comma ', '; } 
149.          eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);"); 
150.          return $GLOBALS['G_SP']["inst_class"][$class_name];
151.      }
152.      spError($class_name."类定义不存在,请检查。");
153.  }
154. 
9.  function spRun(){
10.      GLOBAL $__controller$__action;
11.      // 对路由进行自动执行相关操作
12.      spLaunch("router_prefilter");
13.      // 对将要访问的控制器类进行实例化
14.      $handle_controller spClass($__controllernull$GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
15.      // 调用控制器出错将调用路由错误处理函数
16.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
17.          eval($GLOBALS['G_SP']["dispatcher_error"]);
18.          exit;
19.      }
64.      
65.  // 载入用户自定义的函数文件
66.  require(SP_PATH."/SpeedPHP.php");
67.  require(APP_PATH.'/lib/functions.php');
68.  import('md5password.php');
69.  spRun();