From a9cd039b42f1352fee060e0d5928095c2fd2d8ae Mon Sep 17 00:00:00 2001 From: Nazar Date: Sun, 20 Aug 2023 13:48:33 +0600 Subject: [PATCH] #10948 - fix group by syntax --- bol/dao/post_dao.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bol/dao/post_dao.php b/bol/dao/post_dao.php index 8b62725..a57428b 100644 --- a/bol/dao/post_dao.php +++ b/bol/dao/post_dao.php @@ -313,7 +313,8 @@ public function findUserArchiveData( $id ) SELECT YEAR( FROM_UNIXTIME(`timestamp`) ) as `y`, MONTH( FROM_UNIXTIME(`timestamp`) ) as `m` FROM `{$this->getTableName()}` WHERE isDraft = 0 AND `authorId` = ? - GROUP BY `y` DESC, `m` DESC + GROUP BY `y` + ORDER BY `y` DESC, `m` DESC "; return $this->dbo->queryForList($query, array($id));