Database Error

A database error occurred while performing the requested procedure. Please review the database error below for more information.

/var/fw/kohana/kohana-v2.3.4/system/libraries/drivers/Database/Mysqli.php [142]:

There was an SQL error: 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 ')' at line 6 - SELECT COUNT(*) AS `records_found` FROM (`releases`) WHERE `name` LIKE '%' AND `name` LIKE '%' AND `total_medias` > 0 AND `id` IN ()

Stack Trace