improved SQL statement in TCMySQLManager::GetRunsOfSet()