Fatal error: Uncaught exception 'Exception' with 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 ProductsKEY != 133 AND `Workflow`.`IT` = 1 ORDER BY Codice' at line 1 Query: SELECT `Products`.*,`Workflow`.`WorkflowName` as `WorkflowName` ,`Workflow`.`Object` as `Object` ,`Workflow`.`DCE` as `DCE` ,`Workflow`.`ModelName` as `ModelName` ,`Workflow`.`State` as `State` ,`Workflow`.`OUser` as `OUser` ,`Workflow`.`OGroup` as `OGroup` ,`Workflow`.`ModifyUser` as `ModifyUser` ,`Workflow`.`CreateUser` as `CreateUser` ,`Workflow`.`ID` as `wfID` ,`Workflow`.`CreationDate` as `CreationDate` ,`Workflow`.`ModificationDate` as `ModificationDate` ,`Workflow`.`WorkflowKEY` as `WorkflowKEY` FROM `Products` JOIN `Workflow` ON `Workflow`.`Object` = 'Products' AND `Workflow`.`ID` = `ProductsKEY` AND ( `Workflow`.`State` in ('online') ) WHERE `ProductCategoriesFKEY` IN () AND ProductsKEY != 133 AND `Workflow`.`IT` = 1 ORDER BY Codice' in in /var/www/vhosts/podhio.it/httpdocs/libs/dlibs/ActiveDB/MySQLDbWrapper.php on line 112