Fix Alli/Corp/Pilot summary display

Group the SQL queries with scl_id, because this always exists.