Notes:
Yes there is a mistake here. The join table entries are reversed. Argh!