title: PHP PDO query error on table has json data type (MySQL 5.7.8-rc)
body: <p>I'm trying new json datatype on mysql 5.7. When I use native php mysql query, it works fine, but when I use PDO to query data, it shows this error: </p>
  
  <blockquote>
    <p>Error: exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2036 ' in /some_folder/pdo.php:12 Stack trace: #0 /some_folder/pdo.php(12): PDO->query('select * from table_has_json_datatype') #1 {main} </p>
  </blockquote>
  
  <p>Do you guys know how to solve this problem ? </p>
  
  <p>Thanks.</p>
  
  <p>Update with my simple test code:    </p>
  
  <pre><code>&lt;?php
  
  try{
      $db = new PDO('mysql:host=some.host;dbname=somedb;charset=utf8', 'user', 'pwd');
      $db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      $db-&gt;setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
  }catch(PDOException  $e){
      echo "Error1: ".$e;
  }
  
  try{
      $query = $db-&gt;query("select * from table_with_json_type");
  
  }catch(PDOException $e){
      echo "Error2: ".$e;
  }
  ?&gt;
  </code></pre>