Working around Joomla! 2.5 being silly with DB errors