Getting error
I am getting following error often logged in log
2016/05/25 21:52:38 [error] 1431#0: *8 FastCGI sent in stderr: "PHP message: WordPress database error 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 'WHERE AND comment_parent IN (32,40,51,60) ORDER BY comment_date_gmt ASC, comme' at line 1 for query WHERE AND comment_parent IN (32,40,51,60) ORDER BY comment_date_gmt ASC, comment_ID ASC made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/clipper/wrapper.php'), load_template, require_once('/themes/flatter/front-page.php'), get_template_part, locate_template, load_template, require('/themes/flatter/home-tabbed.php'), appthemes_load_template, require('/themes/flatter/includes/home-tab-featured-coupons.php'), get_template_part, locate_template, load_template, require('/themes/flatter/loop-coupon.php'), get_template_part, locate_template, load_template, require('/themes/flatter/content-coupon.php'), comments_template, WP_Comment_Query->__construct, WP_Comment_Query->query, WP_Co" while reading response header from upstream, client: 103.18.72.20, server: example.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "example.com"
Can anyone tell me what is the reason and how to resolve this?