Create function to get a column by name