SELECT posts.id, posts.title, posts.title_slug, posts.summary, posts.category_id, posts.image_big, posts.image_slider,posts.language_option, posts.image_mid, posts.image_small, posts.image_mime, posts.slider_order, posts.featured_order, posts.post_type, posts.image_url, posts.user_id, posts.pageviews, posts.lang_id, posts.created_at, categories.name AS category_name, categories.name_slug AS category_slug , categories.color AS category_color, users.username AS author_username, users.slug AS author_slug, (SELECT COUNT(comments.id) FROM comments WHERE posts.id = comments.post_id AND comments.parent_id = 0 AND comments.status = 1) AS comment_count FROM posts INNER JOIN categories ON categories.id = posts.category_id INNER JOIN users ON users.id = posts.user_id WHERE posts.id IN () AND posts.lang_id = ? AND posts.language_option= 'hindi' ORDER BY posts.created_at DESC Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND posts.lang_id = ? AND posts.language_option= 'hindi' ORDE' at line 9

SELECT posts.id, posts.title, posts.title_slug, posts.summary, posts.category_id, posts.image_big, posts.image_slider,posts.language_option, posts.image_mid, posts.image_small, posts.image_mime, posts.slider_order, posts.featured_order, posts.post_type, posts.image_url, posts.user_id, posts.pageviews, posts.lang_id, posts.created_at, categories.name AS category_name, categories.name_slug AS category_slug , categories.color AS category_color, users.username AS author_username, users.slug AS author_slug, (SELECT COUNT(comments.id) FROM comments WHERE posts.id = comments.post_id AND comments.parent_id = 0 AND comments.status = 1) AS comment_count FROM posts INNER JOIN categories ON categories.id = posts.category_id INNER JOIN users ON users.id = posts.user_id WHERE posts.id IN () AND posts.lang_id = ? AND posts.language_option= 'hindi' ORDER BY posts.created_at DESC

Filename: models/Post_model.php

Line Number: 211