I think I got it to work.
Looks like I got the query for the inventory page working. Thanks Reddit!