change water sql
This commit is contained in:
parent
b918763486
commit
7aafcc16d1
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue