Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEA@ed_hayter
I believe you have the wrong solution - the solution you have posted is for last week's challenge. The spoiler is for this week, but your solution is not.
Went with a quick and dirty solution. Wouldn't use this in a production environment. Also know there is a published version category in that DB so you don't typically have to sort through all the versions.