SOLVED 'bug' with self referencing many to many relationship table