What could be causing this PHP - MySQL bind error?
<blockquote>
  <p>You have an error in your SQL syntax;
  check the manual  that corresponds to
  your MySQL server version for the
  right syntax to use near '?,?' at line
  1</p>
</blockquote>

<p>I never had an issue with the code before so I am guessing it must have something to do with the MySQL version (MySQL 4.1.25 &amp; PHP 5). </p>

<p>Here is the code I am using:</p>

<pre><code>  $sql = "a long sql select statement... ?,?";

  if ($stmt = $mysqli-&gt;prepare($sql)) 
    {
        // it never even gets here
        $stmt-&gt;bind_param('ii',$offset,$limit);
        ... 
    }
  else
    {   
        echo($mysqli-&gt;error);
    }
</code></pre>
