def select_one(self, where, field=None, as_dict=False):
    row = self.query(where, one=True, as_dict=as_dict)
    if (field and row):
        return (row[field] if as_dict else row.__getattribute__(field))
    return row
def select_one(self, where, field=None, as_dict=False):
    row = self.query(where, one=True, as_dict=as_dict)
    if (field and row):
        return (row[field] if as_dict else row.__getattribute__(field))
    return row