diff --git a/Model/ResourceModel/Post/Collection.php b/Model/ResourceModel/Post/Collection.php index 8f8e7e1e..48dc64cc 100755 --- a/Model/ResourceModel/Post/Collection.php +++ b/Model/ResourceModel/Post/Collection.php @@ -353,9 +353,9 @@ public function addCategoryFilter($category) public function addArchiveFilter($year, $month) { $this->getSelect() - ->where('YEAR(publish_time) = ?', $year); + ->where('YEAR(main_table.publish_time) = ?', $year); if ($month) { - $this->getSelect()->where('MONTH(publish_time) = ?', $month); + $this->getSelect()->where('MONTH(main_table.publish_time) = ?', $month); } return $this;