Skip to content

Commit

Permalink
Strip quotes from locationscount
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Sep 10, 2020
1 parent 536d68f commit 7759697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public static function getByMostLocations()
->setSelect('"Contact"."ID", count("ContactLocation"."ID") as LocationsCount')
->addLeftJoin('ContactLocation', '"Contact"."ID" = "ContactLocation"."ContactID"')
->addGroupBy('"Contact"."ID"')
->addOrderBy('"LocationsCount"', 'DESC')
->addOrderBy('LocationsCount', 'DESC')
->setLimit(1);

foreach ($query->execute() as $row) {
Expand Down

0 comments on commit 7759697

Please sign in to comment.