* Fixing virtual field subquery name.
* Replacing hand written query by cakephp find.