'key' is a reserved word in mysql. So when building a query, the api-key.key column name needs to be escaped