From 47f6483e69650133cb03abc03b0ba15d75c270c4 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 12 Jun 2014 06:55:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=86=E7=B1=BB=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E5=88=97=E8=A1=A8=E7=9A=84=E5=88=86=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/ArchivesController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/default/controllers/ArchivesController.php b/application/default/controllers/ArchivesController.php index c1497aea..7bcdee52 100644 --- a/application/default/controllers/ArchivesController.php +++ b/application/default/controllers/ArchivesController.php @@ -131,7 +131,8 @@ class ArchivesController extends Zend_Controller_Action $sql = "SELECT n.*,c.id as typeid,c.code FROM ".$News->tbl_archives." n left join ".$News->tbl_catalog." ct on ct.aid=n.id left join ".$News->tbl_categorys." c ON ct.cid=c.id - WHERE c.id='{$row['id']}' AND n.ts_published<'".$time."' AND n.is_pub=true + WHERE c.id='{$row['id']}' AND n.ts_published<'".$time."' AND n.is_pub=true + and n.sub='$this->subnews' ORDER BY n.ts_published DESC"; $rs = $this->db->query($sql);