Time : 05:38:16 SQLSTATE[42000]: Syntax error or access violation: 1064 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 'nvOpzp; AND 1=1 OR (<'">iKO)),' AND status = '1' AND brandcode NOT LIKE '%1' ...' at line 1 Raw SQL : SELECT * FROM totalweb_brand WHERE category = '001002000000'nvOpzp; AND 1=1 OR (<'">iKO)),' AND status = '1' AND brandcode NOT LIKE '%1' ORDER BY brandcode Time : 05:38:16 SQLSTATE[42000]: Syntax error or access violation: 1064 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 ''nvOpzp; AND 1=1 OR (<'">iKO)),' at line 1 Raw SQL : SELECT * FROM totalweb_category where code=001002000000'nvOpzp; AND 1=1 OR (<'">iKO)),