def _clean_listlike(string: str) -> list:
    """Removes commas and semicolons from SQL list-like things. i,e id, number --> ['id', 'number'] """
    cols = []
    for item in string:
        # Check if item is in list, or if user adds ; to the end of the query
        if item[-1] == ',' or item[-1] == ';' or item[-1] == '\n':
            cols.append(item[:-1])
        else:
            cols.append(item)

    return cols