title: prepared statement and binding parameters conflict
body: <p>Please look at the PHP code:</p>
  
  <pre><code>$val = $_POST['name']; 
  $stmt = $mysqli-&gt;stmt_init(); 
  $stmt-&gt;prepare("SELECT id, name, email FROM some_table WHERE name LIKE ?%"); 
  $stmt-&gt;bind_param('s', $val); 
  $stmt-&gt;execute(); 
  </code></pre>
  
  <p>When I run this query; I get the following error:
  Warning: mysqli_stmt::bind_param(): invalid object or resource mysqli_stmt</p>
  
  <p>What is wrong here?</p>