Short Description: bug fix 1395 Removing Distinct from being used unless
specified in the select query
Code reviewed by: Tom Ware
Tests added: added testRemoveUnneccesaryDistinctFromJoin to
EMQueryJUnitTestSuite
Tested with entity-persistence-tests and Oracle-internal tests