Translations:Manual:$wgShowSQLErrors/6/en

Set $ShowSQLErrors to  to see the actual query, which caused the error.