Fix for 662: Incorrect Active Record lazy loading of relation through BELONGS_TO relation

Fixes #662: Incorrect Active Record lazy loading of relation through BELONGS_TO relation.

"CActiveFinder::applyLazyCondition()" has been updated to use last relation in the join chain, while composing where condition.