Handle MySQL error about wrong name in SELECT

Stupid Exception hierarchy is stupid

Change-Id: I14cd9ba7e62db1be06b9a80825dcad1900073311