Using Result-set from Prepared Statement

I have a query that includes GROUP_CONCAT, and I can’t seem to get the results I want, so I am trying to break things up into two queries.

Since I exclusively use Prepared Statements, how do I capture the results-set from a Prepared Statement so that I can turn around and run another Prepared Statement off of the results?



More details please.

It seems obvious that you would loop through the results of the first query and feed the results to the second query. But I’m guessing that you are asking something else?

You do know that you need not use bind statements? That you can just pass an array of values to a prepared query?