* Fixed bug for selecting fields on inner query