fix sql error
This commit is contained in:
parent
f3bee97f82
commit
50d118b386
|
@ -80,7 +80,7 @@ class IndexController extends Zend_Controller_Action
|
|||
|
||||
$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);
|
||||
$this->view->visualdata = $sth->fetchAll(PDO::FETCH_BOTH);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue