Fix incorrect reflexive many-to-many query generation.

Resolve #32.
Merge pull request #33 from InfinitumFramework/mtm-fix

Fix incorrect reflexive many-to-many query generation