Fixes #1173 Field 'lastip' doesn't have a default value
Merge pull request #1177 from JN-Jones/fix-1173

Fixes #1173 Field 'lastip' doesn't have a default value