custom fields should only show up on their assigned jurisdiction page (probably fixes #131)

Converted the cross joins into left outer joins, which are a better
fit. This moved some conditions from the where clause into the on
clauses, which should be more readable and hopefully faster (although
we don't have the data to test that, really).