def query_where(lista):
    """Takes a list and returns a string of its items separated by ','"""
    string = ""
    for record in lista:
        string += str(record) + ","
    string = string[:-1]
    return string