You have a problem that no one else seems to have or has reported here to my knowledge. So since I have not seen the error before, and you have claimed that the database user permissions are set correctly, I can't even begin to guess what has gone wrong on your site. That's why it is important to pinpoint the problem...
We know, based on your error message, that the MOD ID has not been assigned in the SQL statement that adds a record to your phpbb_easymod_processed_files table. So we need to find out why that is happening before we can come up with a solution. That's why I suggested using echo commands to help pinpoint the cause of the problem...
I've offered personal help and I would be more than happy to figure this out with/for you. Otherwise, you are going to have to go through the EM code yourself. I don't think I will be able to teach you php syntax in a short amount of time. I've been dealing with it for nearly 2 years now and I am still learning it, and I am a trained programmer in other languages...
My offer still stands. If you are interested, send me a PM and we can go from there...
