Making multiple query calls can slow things down.
You might look into joining the data by the orgID or doing a union:
select year from table1 where orgID='xxx' union select year from table2 where orgID='xxx' union select year from table3 where orgID='xxx'
This isn't too fancy. But it will consolidate the duplicates for you. If you absolutely need to know which table the value came from, you could do:
select year, "table1" AS tablename from table1 where orgID='xxx' union select year, "table2" AS tablename from table2 where orgID='xxx' union select year, "table3" AS tablename from table3 where orgID='xxx'
If you're really lazy, you use the for loop provided earlier and use it to build this query as one string. Then query the database once using this.