Add where condition so select_one returns the correct record.