title: Email causing mysqli query to fail
body: <p>Trying to run a simple query which inserts some data into a user table, but email (@ sign to be more specific) is causing the query to fail. Here's the code:</p>
  
  <pre><code>$query = "insert into user (username, password, email) value (?,?,?)";
  if ($stmt = $mysqli-&gt;prepare($query)) {
    $this-&gt;email = $mysqli-&gt;real_escape_string($this-&gt;email);
    $stmt-&gt;bind_param('sss', $this-&gt;screenName, $this-&gt;password, $this-&gt;email);
    $stmt-&gt;execute();
    if ($mysqli-&gt;affected_rows != -1) {
      $this-&gt;uid = $stmt-&gt;insert_id;
      $response = array("status" =&gt; "success");
    } else {
      $response = array("error" =&gt; "db error while inserting");   //db error
    }
  } else {
    $response = array("error" =&gt; "db error");   //db error
  }
  </code></pre>
  
  <p>It just prints db error while inserting, ideally it should return me "success"
  NOTE: This is just a code snippet. Assume db connections are all working fine.</p>