Fix getAll() query.

Replace name of a var.