Invalid query:
 SELECT distinct ItemID FROM `OrdersItems` WHERE OrderID in(SELECT OrderID FROM OrdersItems WHERE ItemID in(Array))

Unknown column 'Array' in 'where clause'