If the second parameter is null, return all columns in the result.