My best answer would be Phillip.
So there are four seats, two seats in the middle. Sally has to be in the middle because she is sitting next to Phillip. Phillip is also in the middle, and since he is not sitting next to Gerald that means John is the only other person (besides Sally) who is sitting next to him. Leaving both Gerald and John on opposite ends of the four seats.
I hope this helps and/or makes sense.