'Returns multiple document properties.
:param doctype: DocType name.
:param filters: Filters like `{"x":"y"}` or name of the document.
:param fieldname: Column name.
:param ignore: Don\'t raise exception if table, column is missing.
:param as_dict: Return values as dict.
:param debug: Print query in error log.
:param order_by: Column to order by
Example:
# return first customer starting with a
customers = frappe.db.get_values("Customer", {"name": ("like a%")})
# return last login of **User** `test@example.com`
user = frappe.db.get_values("User", "test@example.com", "*")[0]'

def get_values(self, doctype, filters=None, fieldname=u'name', ignore=None, as_dict=False, debug=False, order_by=None, update=None, cache=False):

    out = None
    if (cache and isinstance(filters, basestring) and ((doctype, filters, fieldname) in self.value_cache)):
        return self.value_cache[(doctype, filters, fieldname)]
    if (not order_by):
        order_by = u'modified    desc'
    if isinstance(filters, list):
        out = self._get_value_for_many_names(doctype, filters, fieldname, debug=debug)
    else:
        fields = fieldname
        if (fieldname != u'*'):
            if isinstance(fieldname, basestring):
                fields = [fieldname]
            else:
                fields = fieldname
        if ((filters is not None) and ((filters != doctype) or (doctype == u'DocType'))):
            try:
                out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
            except Exception as e:
                if (ignore and (e.args[0] in (1146, 1054))):
                    out = None
                elif ((not ignore) and (e.args[0] == 1146)):
                    out = self.get_values_from_single(fields, filters, doctype, as_dict, debug, update)
                else:
                    raise
        else:
            out = self.get_values_from_single(fields, filters, doctype, as_dict, debug, update)
    if (cache and isinstance(filters, basestring)):
        self.value_cache[(doctype, filters, fieldname)] = out
    return out
