title: bind_param problem with binding boolean values
body: <p>I have a problem binding booleans using <code>mysqli_stmt::bind_param</code> in PHP5.</p>
  <p>The SQL query is the following:</p>
  <pre><code>insert into `nvp_notes` (subject,messageid,receivedate,read) values (?,?,?,?)
  </code></pre>
  <p>Where 'read' is a tinyint, either 0 or 1, as I've had issues with bit using mysqli. So the types that I list in bind_param are:</p>
  <pre><code>$stmt-&gt;bind_param('sdsd', ...);
  </code></pre>
  <p>I've also tried 'sdsb' and 'sdss' but nothing seems to work, and I always get the message:</p>
  <blockquote>
  <p>Warning: mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement</p>
  </blockquote>
  <p>When I remove the read field in the statement everything works fine. I've run out of ideas with this one. Surely bind_param works with booleans?</p>