恢复westdc的特色新闻

This commit is contained in:
wlx 2015-04-24 00:57:17 +00:00
parent 9d1c6dbdcd
commit a96a46593d
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class IndexController extends Zend_Controller_Action
$News = new Archive($this->db); $News = new Archive($this->db);
$time = date("Y-m-d H:i:s",time()); $time = date("Y-m-d H:i:s",time());
$sql = "SELECT * FROM heihearchive WHERE is_pub=true AND ts_published<'$time' AND image!='' and id in (select ar_catalog.aid from ar_category left join ar_catalog on ar_category.id=ar_catalog.cid where ar_category.code='featured') order by ts_published desc LIMIT 5"; $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' AND image!='' and id in (select ar_catalog.aid from ar_category left join ar_catalog on ar_category.id=ar_catalog.cid where ar_category.code='featured') order by ts_published desc LIMIT 5";
$sth = $this->db->query($sql); $sth = $this->db->query($sql);
$rows = $sth->fetchAll(PDO::FETCH_BOTH); $rows = $sth->fetchAll(PDO::FETCH_BOTH);