title: Listing UID Numbers of friends to query database
body: <p>sorry for the noobie question here but I've been struggling for a while. I'm developing an app I'm trying to query my database to add points whenever a friend starts using the app. I've been using this FQL command to find friends using the app</p>
  
  <pre><code>SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) AND is_app_user=1
  </code></pre>
  
  <p>This brings the results in an array of just the UIDs of friends already using the app. Like so (All of these are test users):</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [uid] =&gt; 100003095627567 ) [1] =&gt; Array ( [uid] =&gt; 100003256239213 ) [2] =&gt; Array ( [uid] =&gt; 100003296198341 ) ) 
  </code></pre>
  
  <p>The problem I'm running into is that I need all of the UID's in a single variable separated by commas like (UID1, UID2, UID3) so I can query the database on my end. I've already tried the ForEach command but thats not working. Any help or a suggested workaround would be nice :)</p>