Error in ModCommentsCore.php
In the commit http://code.vtiger.com/vtiger/vtigercrm/commit/521176834db699fcbe22a885ef8d4e25e16049b7 for #809 (closed) a line of code was cut and pasted into most entity module classes:
//if secondary modules custom reference field is selected
$query .= parent::getReportsUiType10Query($secmodule, $queryPlanner);
In ModCommentsCore however, the $queryplanner varname is not written in camelCase, it is all lowercase so the call to getReportsUiType10Query() fails because $queryPlanner is null.