SELECT COUNT(*) FROM `data` WHERE `name` LIKE '%1}}dfb{{'abcd'.toUpperCase()}}xca%'
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 'abcd'.toUpperCase()}}xca%'' at line 1