Fixes #1061 SQL error when searching for "posts with this ip"
Merge pull request #1062 from PaulBender/fix-1061

Fixes #1061 SQL error when searching for "posts with this ip"