title: Can't PDO with multiple select LIKE
body: <p>Having trouble with the following code. It's not giving an error nor does it output anything. The problem is with the <code>multipleReg</code> part. If I remove <code>bindValue multiplereg</code> and replace <code>:multiplereg</code> in the select statement with <code>$multipleReg</code> it works. I have a feeling it's cause it's not an array but I've tried executing it as an array which has not worked. Any help would be much appreciated.</p>
  
  <pre><code>&lt;?php
  header('Content-Type: application/json; Charset=UTF-8');
  require "includes/config.php";
  
  $offset = $_GET["offset"];
  $region = trim($_GET["region"]);
  $regionExp = explode(",", $region);
  $tag = $_GET["tag"];
  
  $data = array();
  
  foreach ($regionExp as $singleReg)
      $queryKeyword[] = "'%$singleReg%'";
  
  $multipleReg = implode(' OR region LIKE ', $queryKeyword);
  
  try {
      $sql = "SELECT * FROM news WHERE FIND_IN_SET(`tag`, :tag) AND 
  (region LIKE :multipleReg) ORDER BY id DESC LIMIT 10 OFFSET :offsetNr";
  
  $stmt = $db-&gt;prepare($sql);
  $stmt-&gt;bindValue(':tag', $tag);
  $stmt-&gt;bindValue(':multipleReg', $multipleReg);
  $stmt-&gt;bindValue(':offsetNr', (int) $offset, PDO::PARAM_INT);
  $stmt-&gt;execute();
  while($row = $stmt-&gt;fetch(PDO::FETCH_ASSOC)) {
      $data[] = $row;
  }
  echo json_encode($data);
  $stmt-&gt;closeCursor();
  exit();
  } catch(PDOException $e) {
      echo $e-&gt;getMessage();
  }
  ?&gt;
  </code></pre>