public function query($sql, $params = array()){
        $this->_error = false;
        if(this->_query = $this->_pdo->prepare($sql)){
            $x = 1;
            if(count($params)){
                foreach($params as $param){
                    $this->_query->bindValue($x, $param);
                    $x++;
                }
            }
            if($this->_query->execute()){
                echo "Success";
            }
        }
    }
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.
 
    