title: PDO query method with bindValue() seems not to be working
body: <p>It never works. And when I do a var dump on the sql query I see that the question marks are still in it. Which means that the values have not been binded right?</p>
  
  <p>I don't understand why it's not binding the values.</p>
  
  <p>Can anybody help me out?</p>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>$ruleValue = "value1";
  $input = "value2";
  $inputValue = "value3";
  
  $this-&gt;_db-&gt;query('SELECT * FROM ? WHERE ? = ?', array($ruleValue, $input, $inputValue));
  </code></pre>
  
  <p><strong>Method</strong></p>
  
  <pre><code>public function query($sql, $params = array()) {
      $this-&gt;_error = false;
  
      if($this-&gt;_query = $this-&gt;_pdo-&gt;prepare($sql)) {
          $x = 1;
          if(count($params)) {
              foreach($params as $param) {
                  $this-&gt;_query-&gt;bindValue($x, $param);
                  $x++;
              }
          }
  
          if($this-&gt;_query-&gt;execute()) {
              $this-&gt;_results = $this-&gt;_query-&gt;fetchAll(PDO::FETCH_OBJ);
              $this-&gt;_count = $this-&gt;_query-&gt;rowCount();
          } else {
              $this-&gt;_error = true;
          }
          var_dump($this-&gt;_query);
      }
  
      return $this;
  }
  </code></pre>
  
  <p><strong>var_dump</strong></p>
  
  <pre><code>object(PDOStatement)#5 (1) { ["queryString"]=&gt; string(27) "SELECT * FROM ? WHERE ? = ?" }
  </code></pre>