[Jaws_ORM]: Fixed issue related to sub-queries