The real problem is that you hava a database excepction that the code can not show. In elgg 1.9 and above all the engine/database was fully rewritten, that's why is not happening there. I use 1.8.20 and have this problem, but usually is because the table is corrupt and have to repair it (usually the user sessions table).
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.