From ac2447040f12c5491f56f839d249764aa066e04b Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Wed, 28 Apr 2021 21:30:34 +0200 Subject: [PATCH] #64: Use more portable SQL in run_query --- inc/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/page.php b/inc/page.php index b6ef238..7b462d0 100644 --- a/inc/page.php +++ b/inc/page.php @@ -186,7 +186,7 @@ class Page { $where = $this->where_append($this->name === "kicks" ? "" : $this->settings->active_query); // Not user input $where .= "(uuid <> '#offline#' AND uuid IS NOT NULL)"; - $st = $this->conn->prepare("SELECT $select FROM $table $where GROUP BY $table.id ORDER BY time DESC LIMIT :limit OFFSET :offset"); + $st = $this->conn->prepare("SELECT $select FROM $table $where ORDER BY time DESC LIMIT :limit OFFSET :offset"); $st->bindParam(':offset', $offset, PDO::PARAM_INT); $st->bindParam(':limit', $limit, PDO::PARAM_INT);