fix sql error

This commit is contained in:
wlx 2014-07-17 00:02:06 +00:00
parent 7d5136ff8d
commit 1ab3982e7f
1 changed files with 1 additions and 1 deletions

View File

@ -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();