Incorrect Integer value
I've read through all the related articles for this error, but they're of no help.
I'm trying to delete an image, its thumbnail and database record, the delete button passes the url:
However, the attached page refuses to accept tp_id for some reason, and I get the error message
incorrect INTEGER value:
I've tried everything I can think of, but can't see what's wrong. When I run the query in the database, it returns the correct record.