For anyone that needs this in the future the query you need to update is the following
(First backup and make duplicate of ps_stock_available table just in case.)
UPDATE ps_stock_available SET depends_on_stock = 0;
You might have to change the 'ps_' to whatever your tables are called if you changed them at install
I think this problem starts if you migrate data from 1.6 to 1.7 and it migrates with this field set to 1, whenever i update a product manually in the backend, it always updates this field to 0
I think the ps_stock_available field relates back to the advanced stock management features of prestashop 1.5 / 1.6?