is a KEYWORD in SQL.
So you must "escape" it when you use it as a field name.
Put [ ] around it:
sql = "UPDATE images SET [delete] = 1 WHERE id = " & x
(Or do what I do: *NEVER* use keywords as field names. Adapt. In this case, I probably would change the field name in the DB to "dodelete" or similar.)