@classmethod
def join_columns(cls, tables):
    """
        Produces the list of all columns used in a join.
        """
    columns = []
    for table in tables:
        columns += cls.columns_with_alias(table.columns, table.alias)
    return cls.join(*columns, separator=', ')
