In my case, this was a crashed users table in the asterisk database. To check for crashed tables:
Execute mysql -u root -p [YOURMYSQLROOTPASSWORD]
SHOW TABLE STATUS FROM ‘asterisk’;
If a table is marked as crashed from the mysql prompt:
use asterisk;
repair table [YOURCRASHEDTABLE];