Should this array be sorted? I also think this line is too long and would read better if it was split into separate lines (also makes the fact that it's a subquery clearer).