There is a problem with the database

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 '6 C/M', 1, 5),'%') and category = 195 and id <> 1003242 ORDER BY RAND() limit 3' at line 1SELECT * from products WHERE name LIKE CONCAT(SUBSTR('125/00463 WA BOOM 15'6 C/M', 1, 5),'%') and category = 195 and id <> 1003242 ORDER BY RAND() limit 3;