title: How to use modx getResources to return the parent resource one time only?
body: <p>How can I use getResources to get the parent resource from several nodes in a resource tree ~only once~ i.e. I have a getResources call: </p>
  
  <pre><code>[[!getResources?  
      &amp;parents=`738,746,1222, 748, 1216, 805, 806, 807, 3401`
      &amp;tpl=`SecondaryUpdatesHomePageTpl`  
      &amp;limit=`3`  
      &amp;includeTVs=`1`
      &amp;processTVs=`1`  
      &amp;hideContainers=`1`  
      &amp;includeContent=`0`   
      &amp;depth=`1`  
      &amp;sortby=`{"createdon":"desc"}`
  ]]
  </code></pre>
  
  <p>Where the &amp;parents ids are the trees to be searched, there may be several new resources in each parent. I need get resources to return the parent resource of the &amp;parents items 'but only once'</p>
  
  <p>For example if parents 738, 748. 807 &amp; 3401 each have 4 or 5 new resources under them, I don't want 738 getting returned 3 times, I need ~the parents of~ 738, 748 &amp; 807 returned. </p>
  
  <p>Any thoughts on how to do this?
  [modx revolution 2.2.12]</p>