sql fix for joomla