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 'RING W/PUMP TO BLOCK', 1, 5),'%') and category = 195 and id <> 983663 ORDER ...' at line 1SELECT * from products WHERE name LIKE CONCAT(SUBSTR('02/200087 O'RING W/PUMP TO BLOCK', 1, 5),'%') and category = 195 and id <> 983663 ORDER BY RAND() limit 3;