Making pdostatement work as a subclass of pdostatment