There you go, from the first post here, your last 2 lines should look like these 3 lines:
$body = <<
$featured
PPPRINT; That did it! Its working for me now! Except when I choose the "random" case it seems I have a lot of thumbnails missing, or well, thats minor - at least its working.
Thank you thank you thank you!
Basil