Fix getClient query syntax that worked in SQLite but not MySQL.