def METHOD_NAME():
    q = sa.METHOD_NAME([objects_tbl.c.id],
                  whereclause=((objects_tbl.c.name == name)
                               & (objects_tbl.c.class_name == class_name)))
    res = conn.execute(q)
    row = res.fetchone()
    res.close()
    if not row:
        raise _IdNotFoundError
    return row.id