Q&A for WordPress developers and administrators
SELECT SecondLink.PostId as [Post Link], SecondLink.RelatedPostId FROM PostLinks AS FirstLink JOIN PostLinks AS SecondLink ON FirstLink.PostId = SecondLink.RelatedPostId WHERE FirstLink.LinkTypeId=3 AND SecondLink.LinkTypeId=3 AND FirstLink.RelatedPostId=15112125