Electronegativity decreases as you go down a group within the periodic table. This is because of the longer distance between the nucleus and the outer valence electron shell within an atom. This decreases the attraction. Thus, the correct order of electronegativities is O > N > P.