title: PHP PDO Delete from array
body: <p>I have an array of GUIDs:</p>
  
  <pre><code>Array
  (
      [0] =&gt; 1770302746_580821208_2068022554_1652435499
      [1] =&gt; 595039408_884272175_1344680100_1997277231
      ...
  )
  </code></pre>
  
  <p>which I implode to a comma serparated string*:</p>
  
  <pre><code>1770302746_580821208_2068022554_1652435499,595039408_884272175_1344680100_1997277231
  </code></pre>
  
  <p>that I then pass to a sql DELETE statement:</p>
  
  <pre><code>$q=$conn-&gt;prepare(" DELETE FROM su_posts_att_sort WHERE FileGUID IN ({$GUIDs}) ");
  $q-&gt;execute();
  </code></pre>
  
  <p>No rows are deleted however. Placing try / catch blocks to return any exception has not thrown any. Can anyone let me know where I'm going wrong?</p>
  
  <p>*Have also tried with each GUID enclosed in double quotes.</p>
  
  <p><strong>EDIT</strong>
  Here is the submitted sql:</p>
  
  <pre><code>DELETE FROM su_posts_att_sort WHERE FileGUID IN ('1770302746_580821208_2068022554_1652435499','595039408_884272175_1344680100_1997277231') 
  </code></pre>
  
  <p>Works fine through the console...</p>