Finds a banned IP address by its ID.
int $ban_id: The ID for a banned IP address.
string|false Either the banned IP address or FALSE if none exist with that ID.
public function findById($ban_id) {
return $this->connection
->query("SELECT ip FROM {ban_ip} WHERE iid = :iid", array(
':iid' => $ban_id,
))
->fetchField();
}