selectDistinct function does not exist on the object I get after I do db.with(...). with then selectDistinct exists, but that breaks my query.selectDistinct function does not exist on the object I get after I do db.with(...). with then selectDistinct exists, but that breaks my query.