select a.type,a.name,a.id from mymods_class a join mymods_class b on (b.name='contact_n' and a.parent=b.id) order by a.seq,a.name
Query execution was interrupted