I recently came across this same problem (I'm using Netfirms as well). I modified the following line and it seems to work:
$result = $db->query('SELECT COUNT(user_id) FROM '.$db->prefix.'online WHERE idle=0');// or error('Unable to fetch online count', __FILE__, __LINE__, $db->error());
I commented out the rest of the line after the select query.