BUGFIX - passed query is now getting searched