I have used the following query to get the data from database its working fine when the IN () is not empty but how can i restrict it as displaying no rows When my IN is empty
SELECT `id`, `date`, `user`, `type`, `module`, `action`, `ip_address`, `log`
FROM `task_logs`
WHERE `type`='E' AND ((`task` IN () AND (`module` = 'task' OR `module` = 'plan')) OR (`task` IN (35) AND `module` = 'regular_task'))
ORDER BY `id` DESC