Perhaps you could store the previous DB-query String (in a session) and when the "search in results"-option is called connect the previous query with the new.
$previous_query = "SELECT * FROM table WHERE (name LIKE %bla% OR firstname LIKE %bla%)";
$new_query = $previous_query .= " AND (name LIKE %bla2% OR firstname LIKE %bla2%)";