It is good that you were able to get the query worked out a little better. What I'm unsure of and why I mentioned that there is no filtering occurring is that it seems you are getting the inventory for items from your db, but there is no filtering for a particular item. With this recordset you would get back info about the inventory for all of the products.
If you are trying to update the inventory for a particular item then this will not work. You must ensure that you are getting the inventory for the specific item you are trying to update. If you are wanting to do this for each item in the cart that is purchased you will need to set it up differently.
Please post back and describe a little more about what you are hoping to accomplish as an end result with this and how it is working for you now. If the query and setup that you have are working for you then there is no need to change things.