The problem here is that YALMIP has tried to solve the problem using geometric programming (but discovered late in the compilation phase that it is not a geometric program)
How do you intend to solve the problem (did you expect it to be a GP?)
Which solver are you using?
Most likely, you have a nasty nonlinear program without any GP features. If that is the case, you are probably better of if you eliminate the fractions in the model, and write the relation using an equality instead
t = sdpvar(make it the same size as others+p)
obj = obj + t;
Constraints = [Constraints, t.*(others+p)' == ((p' * (others+p)*q*(others+p)')];
As I said though, this sounds like a really nasty nonlinear program, so don't expect to much from the solutions