I suppose it's got from the database indeed. To test the form, just assign a module some parameter(s) and you should see.
I would recommend enhancing last_blog_posts to accept an optional blogId parameter instead of creating a new module. Post your files and patches at mods.tw.o.
Thank you for your contribution.