diff --git a/application/default/controllers/NewsController.php b/application/default/controllers/NewsController.php index c2ea8100..20ffde1e 100644 --- a/application/default/controllers/NewsController.php +++ b/application/default/controllers/NewsController.php @@ -19,7 +19,7 @@ class NewsController extends Zend_Controller_Action $time = date("Y-m-d H:i:s",time()); - $sql = "SELECT id,title,code FROM ".$News->tbl_categorys.""; + $sql = "SELECT id,title,code FROM ".$News->tbl_categorys." where ptype='news'"; $sth = $this->db->query($sql); $rows = $sth->fetchAll();