Open talkingpixels opened 5 years ago
When you use "from" the pointer moves to (in your case) "rows" scope. So when in the second loop you try to do "from" again it's searching for "rows" inside previous "rows". You should use:
$items->reset()->from('rows')
Hi, I'm trying to loop through an array of ids and return some corresponding records, something like this...
It outputs the array correctly in the first loop, but second (or more) loop return nothing and the following warning:
Any thoughts? Could it be something to do with pointers?