Better way to do this query? - Ash Framework