'CJoinQuery::createCommand()' fixed to exclude duplicating joins.
Issue #2970 added to CHANGELOG
Merge pull request #2977 from klimov-paul/2970-ar-duplicate-joins

Fix for #2970 Yii doesn't track what tables are connected