Returns the specified columns from an array