Time : 21:43:57 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 'A=0'' at line 1 Raw SQL : SELECT * FROM 2019_epilogue_relate WHERE del = 'N' AND real_view = '2447'A=0'