Prepared distinct category retrieval