The merge of msDrawQueryMap() and msDrawMap() in ticket #2017 (MapServer v5.0) should have fixed this.