title: PDO syntax error for SELECT query
body: <p>I have a basic query which gets all fields and exports the file but it keeps giving me an error. My code looks like this:</p>
  
  <pre><code>$array = ['users'];
  
  foreach($array AS $i){
          $file = $i.'.sql';
  
          $stmt = $pdo-&gt;prepare("SELECT * FROM ? INTO OUTFILE ?");
          try {
              $stmt-&gt;execute(array($i,$file));
          } catch (PDOException $e) {
              $log .= $e -&gt; getMessage().'........ \n ';
          }
  }
  </code></pre>
  
  <p>I keep getting this error how ever:</p>
  
  <p><code>SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''users' INTO OUTFILE 'users.sql'' at line 1.</code></p>
  
  <p>What is the correct syntax for this ?</p>