def METHOD_NAME(token):
    global check_in_from, from_string, cross_joins
    # Check if we are in a from and append to the from_string
    if not is_tokenlist_or_list(token) and check_in_from is True:
        from_string=from_string+" " +str(token)
    # Check if we encountered a from
    if is_token_word(token, 'from'):
            check_in_from = True
    # if we get a keyword after from, check comma in from_string and reset the from_string. This is a cross join.
    elif (is_token_keyword(token) and not is_token_word(token, 'as')) or is_token_word(token, 'sel') or isinstance(token, Function):
        if check_in_from:
            check_in_from=False
            if ',' in from_string:
                list_join_strings.append("CROSS JOIN:"+from_string)
                cross_joins=cross_joins+1
            from_string=""
        return
    if is_tokenlist_or_list(token):
        for tok in token:
            METHOD_NAME(tok)