Do not repeat yourself. Put this query in a method.