php pdo error handling difficulty
<p>I am using firebug to see what is being returned with JSON and i get this array</p>

<pre><code> Array
(
    [0] =&gt; 00000
)
</code></pre>

<p>With Mysql i could simple do <code>or die(mysql_error())</code>.</p>

<p>Here is my query, I just changed it from mysql to prepared statement and now it isn't working.</p>

<pre><code>        $construct =  $connectdb-&gt;prepare("SELECT rate.voted as rvote, child.*, sub.actionid as usersub, child.position as cnid FROM `table1` child 
        LEFT JOIN vote rate on rate.userid=:userid AND child.id=rate.blockid
        LEFT JOIN subscribe sub on sub.actionid=child.id AND sub.userid=:userid
        WHERE child.sid=:id AND child.position=:clickedposition
        ORDER BY cnid DESC,cid DESC $finalquerylimit");         

        $construct-&gt;execute(array(':userid'=&gt;$userid,':id'=&gt;$id,':clickedposition'=&gt;$clickedposition));
</code></pre>

<p>This is what i used to get the error</p>

<pre><code>print_r($construct-&gt;errorInfo());
</code></pre>

<p>I know the query isn't wrong because it works in MySql?   any idea?</p>
