A Database Error Occurred

Error Number: 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 ')) AND `posts_cruises`.`status` = 'Y'' at line 6

SELECT `id`, `category`, `title`, `excerpt`, `slug`, `photo`, `detail`, `when`, `author`, `tags`, `stick`, `status` FROM `posts_cruises` WHERE `posts_cruises`.`status` != 'D' AND id IN (SELECT DISTINCT `posts` FROM `posts_in_category_cruises` WHERE `category` IN()) AND `posts_cruises`.`status` = 'Y'

Filename: models/posts/Posts_model.php

Line Number: 136