There is a problem with the database

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and id <> ORDER BY RAND() limit 3' at line 1SELECT * from products WHERE name LIKE CONCAT(SUBSTR('', 1, 5),'%') and category = and id <> ORDER BY RAND() limit 3;