See a similar thread here:
If you are able to access your database directly, the link describes a query you can run to find out what you MAX_JOIN_SIZE setting is for the database.
I would be curious to know how many users you have in your database, what your MAX_JOIN_SIZE is, and what the full SQL query is which failed.