[Commits] 5ff1765: MDEV-25714 Join using derived with aggregation returns incorrect results