Making a single query by converting queryset to a list.

@jamalex

I made that painful :)