def METHOD_NAME(query, params):
    cmd = _get_command_to_run(query)
    if not cmd:
        return []
    results = []
    reader_thread = Thread(target=_get_results_from_process, args=(results, cmd, params['pageno']))
    reader_thread.start()
    reader_thread.join(timeout=timeout)
    return results