Using a query as a condition for an update query

Hey James,

I will try to examine it but my first thought is:

Can you show as the output of this query?
DOES this query ALWAYS return values? Or you probably have to first check if it has result and then add to arraylist?

*EDIT:
This is the query? The expression in your condition is not correct...

What you want to filter here? You can't use the $index like that...

By the way, Brian has posted a very good guide for ArrayLists: