One question that recently encountered is the following, suppose I have a task $L$ which has input length $n$, the problem is in the $\text{NP}$ and I promise that there is a unique solution. (The possible search space is $2^{poly(n)}.)$
I want to ask what's the complexity of the output of such a solution. Namely, I think this task belongs to the so-called FNP. Notice that I only have one solution and I promise it has a solution. I remember that given an NP oracle, I should be able to make a polynomial reduction and claim that I can solve such a problem in $P^{NP}.$ But it seems it is not the case. I found the reference claiming that if the problem is NP-complete then it is self-reducible. But I don't know whether is it NP-complete or not.
Finally, I want to ask whether $P^{FNP}$ is in the $PH$ (Polynomial hierarchy). Or in my case, I can say that $P^{L}$ is in the $PH$?
Thanks a lot.