Uncaught Exception

Query Failed to execute
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 ')' at line 1
SELECT `core`.`id`, `core`.`ver`, `core`.`folderid`, `core`.`type`, `core`.`stype`, `core`.`title`, `core`.`titlebar`, `core`.`keywords`, `core`.`summary`, `core`.`tags`, `core`.`code`, `core`.`alias`, `core`.`published`, `core`.`enabled`, `core`.`deleted`, `core`.`sorder`, `core`.`text`, `core`.`data`, `core`.`attr`, `core`.`flags`, `core`.`rating`, `core`.`votes`, `core`.`publishby`, `core`.`publishdate` FROM core WHERE (`enabled` = '1' AND `deleted` = '0' AND `published` = '1') AND ((folderid = 0 AND type IN (41,44,45,47,82,83,85,124,231,1001,1010,1020,1021,1025,1100,1101,2001,2011,2122,10032,10051))) AND UPPER(`core`.`id`) in ()