sorting by stm.id throws out errors on newer versions of mysql

This commit is contained in:
Yağızhan authored and GitHub committed 2020-10-03 12:32:13 +03:00
1 parent d4e85e501e
commit 93bdedd97a
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}