select id,tid,title,addtime,orders,isshow,user,body,retime,reply,email from baiila_message a left join baiila_message_field b on (a.id=b.aid) where isshow=1 and tid=210 order by orders desc,addtime desc,id desc
执行错误: Column 'email' in field list is ambiguous
- /www/web/pengkunen/public_html/include/mysql.php on line 39
34.
$this->arrSql[] = $sql;
35.
if( $result = mysql_query($sql, $this->conn) ){
36.
return $result;
37.
}else{
38.
if(mysql_error()!=''){
39.
40.
syError("{$sql}<br />执行错误: " . mysql_error());
}else{
41.
return TRUE;
42.
}
43.
}
44.
}
- /www/web/pengkunen/public_html/include/mysql.php on line 8
3.
class db_mysql {
4.
public $conn;
5.
public $arrSql;
6.
public function getArray($sql)
7.
{
8.
9.
if( ! $result = $this->exec($sql) )return array();
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);
- /www/web/pengkunen/public_html/include/syModel.php on line 124
119.
return $this->update($conditions, array($field=>$value));
120.
}
121.
122.
public function findSql($sql)
123.
{
124.
125.
return $this->_db->getArray($sql);
}
126.
127.
128.
public function runSql($sql)
129.
{
- /www/web/pengkunen/public_html/include/syModel.php on line 296
291.
for($i=1; $i <= $total_page; $i++)$this->pageData['all_pages'][] = $i;
292.
$limit = ($page - 1) * $pageSize . "," . $pageSize;
293.
if('findSql'==$func_name)$conditions = $this->model_obj->_db->setlimit($conditions, $limit);
294.
}
295.
if('findSql'==$func_name){
296.
297.
return $this->model_obj->findSql($conditions);
}else{
298.
return $this->model_obj->findAll($conditions, $sort, $fields, $limit);
299.
}
300.
}
301.
}
- /www/web/pengkunen/public_html/include/syModel.php on line 258
253.
return $this;
254.
}
255.
256.
public function __call($func_name, $func_args){
257.
if( ( 'findAll' == $func_name || 'findSql' == $func_name ) && 0 != $this->input_args[0]){
258.
259.
return $this->runpager($func_name, $func_args);
}elseif(method_exists($this,$func_name)){
260.
return call_user_func_array(array($this, $func_name), $func_args);
261.
}else{
262.
return call_user_func_array(array($this->model_obj, $func_name), $func_args);
263.
}
- /www/web/pengkunen/public_html/source/message.php on line 110
105.
106.
}
107.
108.
$total_page=total_page($this->db.$w);
109.
110.
111.
$this->lists = $this->Class->syPager($this->syArgs('page',0,1),$this->type['listnum'],$total_page)->findSql($sql);
112.
$pages=$this->Class->syPager()->getPager();
113.
114.
$this->pages=html_url('classtype',$this->type,$pages,$this->syArgs('page',0,1));
115.
- /www/web/pengkunen/public_html/source/message.php on line 110
105.
106.
}
107.
108.
$total_page=total_page($this->db.$w);
109.
110.
111.
$this->lists = $this->Class->syPager($this->syArgs('page',0,1),$this->type['listnum'],$total_page)->findSql($sql);
112.
$pages=$this->Class->syPager()->getPager();
113.
114.
$this->pages=html_url('classtype',$this->type,$pages,$this->syArgs('page',0,1));
115.
- /www/web/pengkunen/public_html/include/Functions.php on line 16
11.
$handle_controller = syClass($__controller, null, $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.
17.
$handle_controller->$__action();
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.
}
- /www/web/pengkunen/public_html/index.php on line 5
1.
<?php
2.
require("config.php");
3.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4.
require(DOYO_PATH."/sys.php");
5.
spRun();