Time : 13:59:14 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 'content LIKE ? ORDER BY insert_date DESC LIMIT 3' at line 1 Raw SQL : SELECT no, store, insert_date, name, title, content, hit FROM 2015_epilogue WHERE no > :no AND d_show = :show AND del = :del AND sort = :sort AND best = :best AND tag LIKE :tagAND content LIKE :keyword ORDER BY insert_date DESC LIMIT 3 Time : 13:59:04 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 '(title LIKE ? AND content LIKE ?) ORDER BY insert_date DESC LIMIT 3' at line 1 Raw SQL : SELECT no, store, insert_date, name, title, content, hit FROM 2015_epilogue WHERE no > :no AND d_show = :show AND del = :del AND sort = :sort AND best = :best AND tag LIKE :tagAND (title LIKE :keyword_title AND content LIKE :keyword_content) ORDER BY insert_date DESC LIMIT 3 Time : 13:59:01 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 '(title LIKE ? AND content LIKE ?) ORDER BY insert_date DESC LIMIT 3' at line 1 Raw SQL : SELECT no, store, insert_date, name, title, content, hit FROM 2015_epilogue WHERE no > :no AND d_show = :show AND del = :del AND sort = :sort AND best = :best AND tag LIKE :tagAND (title LIKE :keyword_title AND content LIKE :keyword_content) ORDER BY insert_date DESC LIMIT 3 Time : 04:43:33 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 '' LIKE ? AND tag LIKE ? AND best = ?' at line 1 Raw SQL : SELECT COUNT(*) FROM 2015_epilogue WHERE no > :no AND d_show = :show AND del = :del AND sort = :sort AND (category = :category1 OR tag LIKE :category2) AND ' LIKE :keyword AND tag LIKE :tag AND best = :best Time : 03:19: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 '.$i['seq'].'.jpg'' at line 1 Raw SQL : SELECT * FROM b_link WHERE shorten = 'front/epilogue/img/a1b'.$i['seq'].'.jpg'