search: fix dummy request: error when query has join statements