Using the latest copy, I'm having problems performing a special ask, it looks as though the getResultHTML function doesn't exist anymore (was a 1.2 function) and has been replaced with a do-it-all function getResult.  So the result needs to be changed to

$result = $printer->getResult($res, $params, SMW_OUTPUT_WIKI);  (or whatever the output should be, in this case I just thought it appropriate to use SMW_OUTPUT_WIKI  :)
Hope that helps,
-Brendan