Updated query because of schema change.