Bug #2874: Fixed duplicate columns selection for HAS_MANY relation with composite primary key