We some times in joomla get this error:
So what to do in order to fix this problem?
The solution is to log in to phpmyadmin and execute this sql query:
Please note that if you have altered the default Table prefix which is jos_ just change it to what you have now in the above code.
After this you could also repair all databases.
You are now good to go.