CStatElement ambiguous fields with join table with composite PK fixed.
Merge pull request #2318 from klimov-paul/stat-element-ambigous-composite-pk

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