You could have just used Google to find how to run queries instead of waiting 4 days... in phpMyAdmin, choose your database from the list on the left, click the SQL tab along the top, paste the query in. Then rebuild the forums cache: ACP >> Tools & Maintenance >> Cache Manager >> forums >> Rebuild Cache.