Trying to resolve integer and NULL binding.

Could be the issue on the production server.