In September this message was introduced which basically only says that there is something in the water.
"A database query error has occurred. This may indicate a bug in the software."
What about rephrasing it to
"A database query error has occurred. Please contact the system administrator. See also the manual on how [[Manual:How to debug#SQL errors|to debug SQL errors]]."
or shorter
"A database query error has occurred. See the manual on how [[Manual:How to debug#SQL errors|to debug SQL errors]]."
Thus it would also provide a hint on how to help the cause. I personally opt for the shorter version. Perhaps you have different ideas on how to rephrase it, if at all.
Version: 1.24rc
Severity: enhancement