I fixed it! You need to look at the table mdl_user_preferences for userid = 6350 and name=auth_forcepasswordchange (or email_send_count, etc.). You'll end up seeing more than one entry and you need to delete all but one of the records because this is supposed to be unique, ie.:
i.e.:
the debug info was: duplicate entry '6532-email_send_count' for key mdl_userpref_usename_uix'
So, the commands I ran were:
select * from mdl_user_preferences where name="email_send_count" and userid = 6532; +-------+--------+------------------+-------+
| id | userid | name | value |
+-------+--------+------------------+-------+
| 10347 | 6532 | email_send_count | 79 |
| 11196 | 6532 | email_send_count | 41 |
+-------+--------+------------------+-------+
2 rows in set (0.00 sec)
mysql> delete from mdl_user_preferences where name="email_send_count" and userid=6532 and id=10347;
Query OK, 1 row affected (0.00 sec)