[gold] Fix undefined behavior in SQL query.
[gold] Fix undefined behavior in SQL query.

Selecting a column that's not in a 'group by' reliably produces the first
value in MySQL, but not in MariaDB.
https://mariadb.com/kb/en/mariadb/group-by-trick-has-been-optimized-away/
    
The CloudSQL instance should be MySQL 5.5, so it should handle this correctly
as-is.

Change-Id: Ibfd5d1989b6bb8c681d5df437db5dc6be11f23ad
Reviewed-on: https://skia-review.googlesource.com/20827
Reviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
Commit-Queue: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>

google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot