I managed to get rid of the errors and got it working.
My problem now is that the shop is not showing the item correctly.
e.g. +9 Cranial Buckler shows apple in the shop.
I can only buy the first apple in the shop, and when bought, i get the +9 Cranial Buckler.
Any help will be appreciated!
I'm trying to make a trading house where all items being sold are loaded from SQL.