$sth = $dbh->prepare("SELECT l.name FROM list l, imembers i " .
"WHERE i.list_id = " . $dbh->quote($root_list_id) .
"AND i.member_type = 'LIST' " .
- "AND i.member_id = l.list_id " .
+ "AND i.member_id = l.list_id AND i.direct = 1 " .
"ORDER BY l.name") || exit $MR_DBMS_ERR;
$sth->execute;