Ok I have a parent class: http://paste.devpipe.com/1315 and a child class: http://paste.devpipe.com/1314 But when I do $query2xml = vB_Query2XML::factory($vbulletin->db); $dom = $query2xml->getXML( "SELECT * FROM users", array( 'rootTag' => 'users', 'idColumn' => 'userid', 'rowTag' => 'user' ) ); PHP: I get an error saying: line 1436 is in the _prepareAndExecute method of the parent class... it shouldn't be called at all... the _prepareAndExecute method of the child class should be executed. What's the problem?