Time : 01:07:43 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 '[0]'' at line 1 Raw SQL : SELECT * FROM 2019_epilogue_relate WHERE del = 'N' AND real_view = '2097'[0]'