<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title></title>
        <link>https://interactivetools.com/forum/forum-search.php?k=user%3Ainternut</link>
        <description></description>
        <pubDate>Tue, 05 May 2026 14:22:40 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Ainternut&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [internut] Using a Join but getting duplicate records because of it... Want one record</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2205129#post2205129</link>
          <description><![CDATA[Well a quick way around is I just cycle through the records and set a variable if its already went through a job number and if so not to show it again.  Not the best way.<br /><br />Now a new question is on record data from the join of &quot;updates&quot;  its only pulling in:<br /><br />[updates.job] =&gt; 533<br />[updates.stage] =&gt; 15 <br /><br />Shouldn't I be getting  record created / updated variables returned?<br />]]></description>
          <pubDate>Fri, 25 Jun 2010 11:34:32 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2205129#post2205129</guid>
        </item>
                <item>
          <title>Using a Join but getting duplicate records because of it... Want one record</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2205128#post2205128</link>
          <description><![CDATA[Hey all...<br /><br />I'm a little stuck on how to go about this.<br /><br />I have a &quot;orders&quot;  table / section.  and a &quot;Updates&quot; section which is used to add updates to an order (stages of the order process).<br /><br />I'm trying to get a list of records from &quot;orders&quot;  and joining the &quot;updates&quot;  table to get the latest stage of the update.<br /><br />Using code:<br /><br /><code>  // load records<br />  list($ordersRecords, $ordersMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'orders',<br /><br />      'leftJoin'      =&gt; array( <br />        'updates' =&gt; 'ON orders.num = updates.job', <br />        'accounts' =&gt; 'ON accounts.num = updates.updatedByUserNum', <br />        'whip_stages' =&gt; 'ON updates.stage = whip_stages.num', <br />      ), <br /><br />	 'debugSql' =&gt; true, <br /><br /><br />    'loadUploads' =&gt; '0',<br />    'loadCreatedBy' =&gt; '0',<br />    'where' =&gt; 'updates.job = orders.num AND archive = 0',<br />	'limit' =&gt; '',<br /><br />  ));</code><br /><br />I get a record returned from &quot;orders&quot; as many times as there are related records in &quot;updates&quot;.  How can I get 1 record returned and just the most recent?<br /><br />DISTINCT?<br /><br />Thanks much!<br />]]></description>
          <pubDate>Fri, 25 Jun 2010 10:35:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2205128#post2205128</guid>
        </item>
              </channel>
    </rss>
  