Probably not worth the effort, as it's only a handful of queries/pages that need fixing.
It's basically selecting 6 random rows from the database and then printing them out one at a time at various points on a webpage.
I think I've almost got it sorted, not knowing what you're doing really makes it quite interesting though :D