Forum Academy Marketplace Showcase Pricing Features

Soling an issue

I’m trying to do a loop through my database. i found a video that explains the issue. this worked earlier for me, but at this moment is does not work anymore.
the youtube video:
https://www.youtube.com/watch?v=7cNWiA_tRvU

any idea what i’m doing wrong?

my setup & server log:

anybody any idea what the problem could be?
also the code inside the server log looks weird