We assume that O lies, for example, on the diagonal AC. Let OE⊥AB, E∈AB and OF⊥AD, F∈AD. Then we have successively OE=OF, △SOE≡△SOF (C.C.), SE=SF. Then M∈SE and OM⊥SF, Q∈SF and OQ⊥SF, △SOM≡△SOQ, SM=SQ, SESM=SFSQ, QM∥EF, so QM∥BD. Analogously we get NP∥BD, so QM∥NP, which means that points M,N,P,Q are coplanar.
Conversely, assume that M,N,P,Q are coplanar in a plane α. Take OG⊥CD, G∈CD and OH⊥BC, H∈BC. Then the points E,O,G are collinear, so the lines SE,SO,SG are coplanar. It follows from this that the lines SO and MP are coplanar, and SO∩MP is the same as SO∩α. Similarly we'll get NQ∩SO is the same as SO∩α, so the lines MP and NQ intersect SO at the same point R.

We calculate the ratio in which point R divides OS, in terms of OS,OE and OG.
Take MT⊥OS, PU⊥OS, U,T∈OS. From the cyclic quadrilateral MOPS we get △MSR∼△OPR, so OPMS=ORMR=PRSR, hence OP2MS2=ORSR⋅PRMR=ORSR⋅PUMT. It follows ORSR=MTPU⋅OP2MS2=MO⋅MS⋅PS⋅PGPS⋅PO⋅MS2=PGPO⋅MOMS. But PGPO=tan∠SGO=OGSO and MOMS=cot∠MSO=OESO, so ORSR=OE⋅OGSO2.
Since line NQ intersects OS also in R, we obtain OE⋅OG=OF⋅OH. On the other hand we have OE+OG=l=OF+OH, where l=AB=AD. It follows from this that OE(l−OE)=OF(l−OF), then (OE−OF)(l−OE−OF)=0, so (OE−OF)(OH−OE)=0. Thus OE=OF or OE=OH, which implies O∈AC or O∈BD.