buildWhere() refactoring
Added param to rawQuery() to disable query variable filtering