in particular to close security issue with sql being output to user see bug http://modxcms.com/forums/index.php/topic,29377.msg178628.html#msg178628