api is a reserved word in MySQL. Change to api_key.