The fact '出现sql语法错误' indicates that the user input is not sanitized properly
and the system may indeed have a SQL injection vulnerability.
While abc’ = 1' may not do any harm, an attacker can change it to, say,
abc';DROP TABLE users;...., now you may see some bad things.