Fix for r56885, r58364, r58364: use a two-part GROUP BY even on MySQL. The implicit...