select * from tblItemsOrderedTemp where AuthID = 'hXq1NEHdoA1gvJnXmI4hslEjgzo68zMZzcm9DzOkFZjRd44Xi8' and ProdIDref in (select ProdIDLimit from tblArticleInAddition where Land = 2 and StartDate < '2018-11-17 09:24:10' and StopDate > '2018-11-16 09:24:10' and ISNULL(ProdIDLimit, 0) > 0)