Fix queries to work with sql_mode=only_full_group_by
This commit is contained in:
parent
942de39e6d
commit
a0cfd33521
6 changed files with 17 additions and 8 deletions
|
|
@ -30,7 +30,7 @@ FROM `profile`
|
|||
WHERE `country` != ""
|
||||
AND `available`
|
||||
GROUP BY `country`
|
||||
ORDER BY COUNT(`country`) DESC
|
||||
ORDER BY `total` DESC
|
||||
LIMIT 10';
|
||||
$countries = $this->connection->fetchAll($stmt);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue