From 2020fef9a4266e734f717dc3b55d31cf370a2573 Mon Sep 17 00:00:00 2001 From: Imanol Losada Date: Wed, 1 Apr 2015 11:30:10 -0500 Subject: [PATCH] Fix wiki discuss query - refs #4507 --- main/wiki/wiki.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/wiki/wiki.inc.php b/main/wiki/wiki.inc.php index 49eb017b98..e6441783b3 100755 --- a/main/wiki/wiki.inc.php +++ b/main/wiki/wiki.inc.php @@ -3193,7 +3193,7 @@ class Wiki $sql="SELECT * FROM $tbl_wiki_discuss reviews, $user_table user WHERE reviews.c_id = $course_id AND reviews.publication_id='".$id."' AND user.user_id='".$firstuserid."' - ORDER BY id DESC"; + ORDER BY reviews.id DESC"; $result=Database::query($sql) or die(Database::error()); $countWPost = Database::num_rows($result);