From 93bdedd97a00d7864a39e41c29664cccef718474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ya=C4=9F=C4=B1zhan?= Date: Sat, 3 Oct 2020 12:32:13 +0300 Subject: [PATCH] sorting by stm.id throws out errors on newer versions of mysql --- src/bb-modules/Support/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-modules/Support/Service.php b/src/bb-modules/Support/Service.php index e6258dc8e..aca780d72 100644 --- a/src/bb-modules/Support/Service.php +++ b/src/bb-modules/Support/Service.php @@ -355,7 +355,7 @@ class Service implements \Box\InjectionAwareInterface $query = $query . ' WHERE ' . implode(' AND ', $where); } - $query .= " GROUP BY st.id, stm.id ORDER BY stm.created_at DESC, st.priority ASC, st.id DESC"; + $query .= " GROUP BY st.id ORDER BY st.priority ASC, st.id DESC"; return array($query, $bindings); }