Makes inner joins (kind of) work