So what is the most advisable way?
run 1st pass query and store in local variable array
based on this array re-run the query, so to make the 2nd pass and filter the records
or else?
Is there a way to avoid running the query two times?
What is an array limit, how many data can store ?
Thanks.