~[tlist_sql;
select
dcid,
last_name,
first_name
from students
where
id in (~[f.table_info;table=students;dothisfor=currentsel;fn=value;field=id;delim=cma]-1)
~[if#1.district.office][else#1]
~[if#2.~[gpv:parentid]=storedselections][else#2]
and schoolid = ~(curschoolid)[/if#2]
[/if#1.district.office]
order by lastfirst
;alternatecolor;nonemessage=