Line where: $query = "SELECT ....
find there: 'INET_NTOA(u.ip_saddr) AS ip_src FROM ulog u LEFT OUTER JOIN host_cache shc ON u.ip_daddr = shc.ip'
change to: INET_NTOA(u.ip_saddr) AS ip_src FROM ulog u LEFT OUTER JOIN host_cache shc ON u.ip_daddr = shc.ip'
may be helps to correct display of frontend in Report