Merged multiple foreign keys from another table to make it match the primary key.