Added query to `NoResultException` for better debugging