I forgot I had your skype. I pinged you there. I am honestly trying to help. I do have to admit that I missed that you're using %d, not %s. That is my fault and I apologize for that. I still don't trust letting a  super global into a prepare statement, without checking it's security first. Yes, it is redundant, but redundancy is good when it comes to security, because one measure is likely to fail at some point.