Add missing reference on const queries.