ccc929e939
When multiple records share MusicBrainz release IDs, the left joins in ListeningStats fan out — producing duplicate rows per scrobbled track. Fix by grouping release subqueries on release_id with MIN(record_id) before joining, so each release maps to exactly one record.