MariaDB Error 1064

I’m looking into the error log for another problem, and in the process I found the following error.

[no app in context] Error: An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'configvalue` + 1)` WHERE (`userid` = 'USERNAME') AND (`configkey` = 'read') AND (...' at line 1

GET /remote.php/webdav/FILENAME.xls
from IP-ADDRESS by USERNAME at 2021-08-31T17:38:33+09:00

This seems to have been happening since at least NC 22.1.0. Is there a workaround?

CentOS 7.8, Nginx 1.20.1, PHP 7.4.22, MariaDB 10.2.44, NC 22.1.1