Fixed SQL statement for contacts.