mysql mod: query -> qry, to avoid shadowing func

Fixes #5109