Fix issue 303 find/where through association

Just posting this as a pull request in case we need to discuss it further in the future. This fixed #303.