Gets scalar selects working