Working query for person list by dept.