change water sql

This commit is contained in:
wlx 2013-09-28 03:24:44 +00:00
parent b918763486
commit 7aafcc16d1
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class Reference
{
$sql="select distinct ref.* from mdref r left join reference ref on r.refid=ref.id
left join datasource ds on r.uuid=ds.uuid left join source s on s.id=ds.sourceid
where s.code='$code' and r.reftype=1
where s.code='$code'
order by ref.year,ref.title";
$rs=$this->db->query($sql);
return $rs->fetchAll();