yiisoft/yii2 — pull request #6545 by pawzar (2014-12-16 20:05:49+00:00)
Title: [WIP] MySQL JOIN bug-fix for multiple FROM tables

When using MySQL we get a “Unknown Column in On Clause” if we JOIN more tables with a reference to one of the tables in FROM.
This fixes the problem.