fix for alternate_names table with mysql strict mode