This has to do with a change made in 7.33.
You will have to prefix the commands within those aliases with '!'. For example, /msg would become /!msg inside a 'msg' alias, and /query would become /!query inside a 'query' alias. This essentially forces mIRC to check for a built-in command by that name, and if none is found I believe it sends the command directly to the server.
Your code will likely need to be changed to resemble something like this:
alias query {
;The '!' command prefix was not previously required inside an alias of the same name
!query $1-
}
I hope that helps.
edit: link above