title: how to bind multiple parameters to MySQLi query
body: <p>I have a mysql query, but I can't bind param for it</p>
  
  <pre><code>SELECT users.email,users.handle,userprofile.mobile FROM users,userprofile WHERE users.email =? OR users.handle =? OR userprofile.mobile=?
  </code></pre>
  
  <p>I've tried below line </p>
  
  <pre><code>$query = "SELECT users.email,users.handle,userprofile.mobile FROM users,userprofile WHERE users.email =? OR users.handle =? OR userprofile.mobile=?";
  $stmt = $mysqli-&gt;prepare($query);
  $stmt-&gt;bind_param("sss",$email,$username,$mobile);
  if ($stmt-&gt;execute()) {
  if($stmt-&gt;num_rows){
     echo '......';
      }
  }
  </code></pre>
  
  <p>but I've received and error :</p>
  
  <blockquote>
    <p>Warning: mysqli_stmt::bind_param(): Number of elements in type
    definition string doesn't match number of bind variables</p>
  </blockquote>