You are raising like that:
raise EInvalidOrderByMemberName.Create(MemberName, A.Optimization.ParentClass.ClassName);
But you are searching it like that:
Info.Column := FExplorer.FindColumnByPropertyName(CurrentAssociation.Target, MemberName);
So this exception is telling you a wrong classname, so that you can not easily.
Maybe you could optimize this, so that we could get quicker to the wrong optimization using a.MemberName as an additional information in this message.