$result2 = $MDB2->query("SELECT `ID`, `Name`, `URLName` FROM tblCurricularArea WHERE `Parent`=" . $MDB2->quote($contentID,'integer') . " ORDER BY DisplayOrder");/*And here's the error it producesPEAR-ErrorMDB2 Error: not found: unable to find package 'MDB2_Datatype' file 'MDB2\Datatype.php'PEAR-ErrorMDB2 Error: no such field: _doquery: [Error message: Could not execute statement][Last query: SELECT `ID`, `Name`, `URLName` FROM tblCurricularArea WHERE `Parent`=Object ORDER BY DisplayOrder][Native code: 1054][Native message: Unknown column 'Object' in 'where clause']Fatal error: Call to undefined function: fetchrow() in C:\pathtoproject\Site\includes\left_nav.inc.php on line 30*/// error handler function handle_pear_error ($error_obj) { global $showDebug; if (!$showDebug) { die("Your request could not be completed due to a database error."); } else { print '<pre><b>PEAR-Error</b><br />'; echo $error_obj->getMessage().': '.$error_obj->getUserinfo(); print '</pre>'; } } PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'handle_pear_error');