def METHOD_NAME(userid, otherid):
    settings = d.engine.scalar(
        "SELECT settings FROM watchuser WHERE (userid, otherid) = (%(user)s, %(other)s)",
        user=userid,
        other=otherid,
    )
    if settings is None:
        raise WeasylError("watchuserRecordMissing")
    return settings