Incorrect query to update cache items