fixed error in SQL where i was double couting some incidents for the stats
page