Fixes #44 - can't add joins before sqlite conversion