Fix for duplicated WHERE when using sourceWhere and destinationWhere parameters

When sourceWhere and destinationWhere parameters are used in LeftJoin and other kind, the generated SQL text contains two WHERE words. This changes fix the problem in my use cases.