Fixed SQL errors w/ wrong column name.

This fixes two SQL related errors on the column name. ip should be host.