Hi,
Turns out this statement breaks on the less recent mariadb/mysql versions. See here for details:
OpenEMR 5.0.2 Patch
(as discussed there, luckily this doesn’t impact the patch except for not loading the covid codes; I am planning to post a fixed patch soon that does not have this issue)
-brady