So the problem, it turns out, is the dots. Somehow having dots (i.d. ".") in that will fuckmess the whole thing up. If you store that IP (in my case, 128.199.105.17) in a variable then use that inside the PDO, it works. Idk exactly why, but it works. Hope someone here can be kind enough to elaborate?