title: PHP PDO Using SQLITE & REGEXP Failing
body: <p>I'm having an issue trying to bind and execute a PDO statement using PHP and a REGEXP for a SQLite database. I have a column containing string words separated by spaces, and I am using the following REGEXP <code>(?&lt;!\S)WORD(?!\S)</code> to match complete words that are surrounded by white space. The following SQL query works when I run in SQLite studio and gives me the desired results:</p>
  
  <pre><code>SELECT * FROM Questions WHERE Tags REGEXP '(?&lt;!\S)WORD(?!\S)'
  </code></pre>
  
  <p>However, when I try to use it in a PDO statement, it keeps failing. So far I have tried:</p>
  
  <pre><code>$sql = "SELECT * FROM Questions WHERE Tags REGEXP :tags";
  $tags = '(?&lt;!\S)WORD(?!\S)';
  $statement = $db -&gt; prepare($sql);
  $statement -&gt; bindParam(':tags', $tags);
  </code></pre>
  
  <p>and I have also tried escaping backslashes as well as running the query directly without using any prepared statements and simply using a known working query and it still seems to fail.
  Ex w/o binds:</p>
  
  <pre><code>$sql = "SELECT * FROM Questions WHERE Tags REGEXP '(?&lt;!\S)TAG(?!\S)'";
  $statement = $db -&gt; query($sql);
  </code></pre>
  
  <p>However that doesn't seem to work with the REGEXP either. If I change it to a simple SELECT * from the entire table or any non-REGEXP query everything seems to work fine until I add in those REGEXPs. I'm pretty new to PHP so I'm not entirely sure what is going on here or where to look. Any help would be appreciated!</p>