what kind of query did you run? It sounds like you ran it directly in the SQL tables. If that's the case, the tickets are left with an escalation date.
If you want to be "safe", you might consider (just as a thought) to use Generic Agent to open those tickets then use Generic Agent to close them again.
Another option is to use a database query to set-to-zero all escalation times for those tickets. I can't be held responsible for your database as there isn't really any support for directly manipulating the tables. BACKUP FIRST your database before trying things, and please don't haphazardly do something because you see something on the Internet that you don't fully understand the implications.