def get_shared_person_info(photosdb, hashed_person_id):
    """ returns tuple of (first name, last name, full name) 
        for person invited to shared album with 
        ZINVITEEHASHEDPERSONID = hashed_person_id
        
    Args:
        photosdb: a osxphotos.PhotosDB object
        hashed_person_id: str, value of ZINVITEEHASHEDPERSONID to lookup
    """

    conn, _ = photosdb.get_db_connection()
    results = conn.execute(
        """
        SELECT
        ZINVITEEHASHEDPERSONID,
        ZINVITEEFIRSTNAME,
        ZINVITEELASTNAME,
        ZINVITEEFULLNAME
        FROM
        ZCLOUDSHAREDALBUMINVITATIONRECORD
        WHERE
        ZINVITEEHASHEDPERSONID = ?
        LIMIT 1
        """,
        ([hashed_person_id]),
    ).fetchall()

    if results:
        row = results[0]
        return (row[1], row[2], row[3])
    else:
        return (None, None, None)