SQL query fixed in countUsersActiveSIs