By using SQL's UNION operation only one query gets fired off (saving the overhead from two connections) and to avoid calling esc_attr($_GET['s']) three times I define $gotten on line 568 above.