Assumes single-column identifier. Should probably throw an exception instead