I updated using Borislavs example, fixed few small errors but still getting a syntax error.
SELECT
a.item
, a.ionhand
, b.lonhand
, b.orderpt
, b.lonordr
, getQuery1.MatAllocated
, getQuery1.MinReqDate
FROM icitem10 a
INNER JOIN iciloc10 b ON a.item = b.item
INNER JOIN (SELECT...