Run Query only on Valid model