title: Forced Matrix Plan Data fetching issue
body: <p>I am working on Forced Matrix plan website. It is 2X8 Matrix. Here user can add 2 frontline on its first level and 4 on its second level and so on. 
  Now i am find the way in mysql that will satisfy my condition.
  my condition is that search sponsor left and right leg anf if empty then insert new member under that sponsor and if not then search sponsor's member left and right leg and so on.</p>
  
  <p>Hope you understand well.
  Here is screenshort of my table data where i am saving the data with relation of sponsor and member with position.</p>
  
  <p><a href="https://i.stack.imgur.com/Mt0hH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mt0hH.jpg" alt="enter image description here"></a></p>