That did it! Sorry if this is basic stuff, but it's all new to me.
I deleted the two lines for removing the pok books and when i hit F9 it says "unsafe queries found" "your query contains UPDATEs and/or DELETEs without a WHERE clause.". "please confirm that you know what you're doing" I think it's quite clear at this point I do not fully.
I've not made any other changes other than deleting those two lines.