I think I know enough on this to be dangerous. I THINK the table prefix in the "g" in front of the dash in the table names, as in g_dname_date=1. Your table may have a different prefix than "g" and you have to adjust the command accordingly replacing the g with whatever the prefix is. So look at the table Core Groups and see if the table names are different, if so you have to change the prefix in the command for dname_ date=1, dname_changes=0, and dname_date=0.
Maybe it's labled as wp_dname_date = 1. for example, in your database.
I'd recommend doing a backup before making any table name changes.
I'll see if I can find someone that knows SQL to see if they'll take a look at this. A SQL savvy type would know the answer to this right off the top of their head.