I have added 'topic_id' in line 305:
// Select pertinent columns// ------------------------------------------------------------$tickets->values('lock__staff_id', 'staff_id', 'isoverdue', 'est_duedate', 'topic_id', 'team_id', 'ticket_id', 'number', 'cdata__subject', 'user__default_email__address', 'source', 'cdata__priority__priority_color', 'cdata__priority__priority_desc', 'status_id', 'status__name', 'status__state', 'dept_id', 'dept__name', 'user__name', 'lastupdate', 'isanswered', 'staff__firstname', 'staff__lastname', 'team__name');// Add in annotationsAnd i have added the following in line 475:<td align="center" nowrap><?php echo $T; ?></td>using 'topic' instead of 'topic_id' returns the same results