queryByCode working!