[UPDATE] sorting by count
This commit is contained in:
parent
37b8d5a56b
commit
d419b1f0ff
@ -156,6 +156,7 @@ class User extends Base {
|
|||||||
LEFT JOIN " . $this->getTableName() . " AS a
|
LEFT JOIN " . $this->getTableName() . " AS a
|
||||||
ON a.id = i.account_id
|
ON a.id = i.account_id
|
||||||
GROUP BY i.account_id
|
GROUP BY i.account_id
|
||||||
|
ORDER BY invitationcount ASC
|
||||||
LIMIT ?");
|
LIMIT ?");
|
||||||
if ($this->checkStmt($stmt) && $stmt->bind_param("i", $limit) && $stmt->execute() && $result = $stmt->get_result()) {
|
if ($this->checkStmt($stmt) && $stmt->bind_param("i", $limit) && $stmt->execute() && $result = $stmt->get_result()) {
|
||||||
return $result->fetch_all(MYSQLI_ASSOC);
|
return $result->fetch_all(MYSQLI_ASSOC);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user