You shouldn't hard code the query here. Instead you should just exit early if nothing has been specified.