Fixed some dumb SQL errors in cacheGet/cachePut.