def METHOD_NAME(projectId, conn):
    """
    Selects features from user_favorite_sessions table.
    """
    query = """SELECT project_id,
                       session_id,
                       T1.user_id,
                       events_count,
                       errors_count,
                       duration,
                       user_country     as country,
                       issue_score,
                       user_device_type as device_type,
                       T2.user_id       AS viewer_id
                FROM sessions AS T1
                         INNER JOIN user_favorite_sessions as T2
                                    USING (session_id)
                WHERE project_id = %(projectId)s;"""
    conn.execute(
        conn.mogrify(query, {"projectId": projectId})
    )
    res = conn.fetchall()
    return res