DB Error in php log after upgrade to 3.1.2.0

Greetings,

I upgraded from 3.1.1.4 to 3.1.2.0 a couple of weeks ago and now I have the following line repeating in my php_error_log and I have no idea where to look? In what file could that line 44 be and what should I do with it?

ojs2: DB Error: 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 ‘AND (LOWER(asf0.setting_value) LIKE LOWER(‘k%’) OR LOWER(asf1.setting_value) LIK’ at line 44

P.S. The upgrade itself took 3 minutes, gave no errors and everything seems to work fine, but this error troubles me somewhat.