Time : 14:45:44 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 '(SUBSTR(code, 1, 6),'000000') = '001004000000' AND code NOT LIKE '%000000' AN...' at line 1 Raw SQL : SELECT * FROM totalweb_category CONCAT(SUBSTR(code, 1, 6),'000000') = '001004000000' AND code NOT LIKE '%000000' AND category_options = '1' Time : 14:45:15 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 '(SUBSTR(code, 1, 6),'000000') = '001004000000' AND code NOT LIKE '%000000' AN...' at line 1 Raw SQL : SELECT * FROM totalweb_category CONCAT(SUBSTR(code, 1, 6),'000000') = '001004000000' AND code NOT LIKE '%000000' AND category_options = '1' Time : 14:31:45 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 '(SUBSTR(code, 1, 6),'000000') = '001004000000' AND code NOT LIKE '%000000' AN...' at line 1 Raw SQL : SELECT * FROM totalweb_category CONCAT(SUBSTR(code, 1, 6),'000000') = '001004000000' AND code NOT LIKE '%000000' AND category_options = '1'