fix sql error
This commit is contained in:
parent
7d5136ff8d
commit
1ab3982e7f
|
@ -610,7 +610,7 @@ class Archive
|
|||
$sql = "select a.* from ".$this->tbl_archives." a
|
||||
left join ".$this->tbl_catalog." ac on a.id=ac.aid
|
||||
left join ".$this->tbl_categorys." c on ac.cid=c.id ";
|
||||
$sql.=" where a.title=? and c.ptype='about' and a.sub=''";
|
||||
$sql.=" where a.title=? and c.ptype='about' and a.sub is null";
|
||||
$sth=$this->db->prepare($sql);
|
||||
$sth->execute(array($title));
|
||||
$rows=$sth->fetch();
|
||||
|
|
Loading…
Reference in New Issue