'Return data as list of single elements (first column).
Example:
# doctypes = ["DocType", "DocField", "User", ...]
doctypes = frappe.db.sql_list("select name from DocType")'

def sql_list(self, query, values=(), debug=False):

    return [r[0] for r in self.sql(query, values, debug=debug)]
