sql.py: distinct_table(): Return new table instead of renaming input table so that columns that use input table will continue to work correctly
sql.py: distinct_table(): Return new table instead of renaming input table so that columns that use input table will continue to work correctly