So I\'ve got a problem that I am trying to solve purely in mySQL (I know it\'s a lot easier if I add in PHP, but I\'m trying to avoid that for reasons outside the scope of this