There was an error with a database query

Query:

SELECT saved.*, category.*, tutorial.*, user.*, GROUP_CONCAT(DISTINCT tag_name) AS tags, COUNT(DISTINCT comment_id) as total_comments FROM (tutorial, user, category, tag_object, tag) LEFT JOIN saved on saved_oid = tutorial_id and saved_uid = -1 LEFT JOIN comment on comment_oid = tutorial_id WHERE tag_id = tag_object_tid and tutorial_id = tag_object_oid and tutorial_category_id = category_id and tutorial_user_id = user_id AND tutorial_id in () and tutorial_queued=0 GROUP BY tutorial_id ORDER BY tutorial_publish_date desc

Error Message

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 tutorial_queued=0 GROUP BY tutorial_id ' at line 13