Auto select on foreign key