Fixed SQL query for getting stats based on callsign