CStatElement ambiguous fields error with join table with composite PK fixed.

This one has been exposed during analyze of #2049.

Added table alias usage for the composite primary key branch as well.