diff --git a/lib/Db/TimelineWrite.php b/lib/Db/TimelineWrite.php index d6a087fd..8b084ef3 100644 --- a/lib/Db/TimelineWrite.php +++ b/lib/Db/TimelineWrite.php @@ -309,7 +309,7 @@ class TimelineWrite ; // Cancel out inner rings - $query->groupBy('poly_id'); + $query->groupBy('poly_id', 'osm_id'); $query->having($query->createFunction('SUM(type_id) > 0')); // memories_planet_geometry has no *PREFIX*