diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index ceb58cd3..218555bd 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -70,8 +70,8 @@ class IndexController extends Zend_Controller_Action $this->view->news = $rows; - $time = date("Y-m-d H:i:s",time()); - $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' order by ts_published desc LIMIT 12 "; + //$time = date("Y-m-d H:i:s",time()); + $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_publisheddb->query($sql); $rows = $sth->fetchAll(PDO::FETCH_BOTH);