corrected named query