diff --git a/database/sql/locations/find.sql b/database/sql/locations/find.sql index e96d72c..5065f1c 100644 --- a/database/sql/locations/find.sql +++ b/database/sql/locations/find.sql @@ -7,5 +7,5 @@ SELECT name, age FROM locations -LEFT JOIN people ON locations.id = people.location_id +LEFT JOIN people ON locations.id = people.home_id ORDER BY locations.id