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 'C', 1, 5),'%') and category = 188 and id <> 401016 ORDER BY RAND() limit 3' at line 1SELECT * from products WHERE name LIKE CONCAT(SUBSTR('1678958 CABLE 6' C', 1, 5),'%') and category = 188 and id <> 401016 ORDER BY RAND() limit 3;