This is basically what I do on my server, but I use a lot more than one query.
Personally replace the information in the depreciated npcspecialattks field with a Template Name. And then run a Query tailored for that type of mob.
A more simpler way would be to base your query on mob_type, as Krugus did at
http://www.eqemulator.org/forums/showthread.php?t=28966