Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR)
<pre><code>public function query($sql, $params = array()){
        $this-&gt;_error = false;
        if(this-&gt;_query = $this-&gt;_pdo-&gt;prepare($sql)){
            $x = 1;
            if(count($params)){
                foreach($params as $param){
                    $this-&gt;_query-&gt;bindValue($x, $param);
                    $x++;
                }
            }

            if($this-&gt;_query-&gt;execute()){
                echo "Success";
            }
        }
    }
</code></pre>

<p>I get the following error althought i think all is being done correctly.
I pray I get some direction as to what am doing wrong.</p>