fix advanced query bug
Merge branch 'master' of https://github.com/rhomobile/rhodes