@pradeep: that’s not very efficient (though it works). less overhead is used when working with prepared statements:
- get all IDs with first query (1st query result array)
- make a prepared statement for the second query
- execute/fetch it for each of the IDs from the first query (result array)
- get all IDs with first query (1st query result array)
- make a prepared statement for the second query
- execute/fetch it for each of the IDs from the first query (result array)
Comment