fix sql error

This commit is contained in:
wlx 2014-06-12 03:43:20 +00:00
parent f3bee97f82
commit 50d118b386
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class IndexController extends Zend_Controller_Action
$this->view->list_news = $rows; $this->view->list_news = $rows;
$sql="select * from $this->submd where uuid in (select uuid from datavisual) limit 5 order by ts_created"; $sql="select * from $this->submd where uuid in (select uuid from datavisual) order by ts_created desc limit 5";
$sth=$this->db->query($sql); $sth=$this->db->query($sql);
$this->view->visualdata = $sth->fetchAll(PDO::FETCH_BOTH); $this->view->visualdata = $sth->fetchAll(PDO::FETCH_BOTH);
} }