Remove array index from query