Fix bug in querying by id_number.

Because a LIKE wildcard search was used id_number %34567 would match
12345676 and you could wind up with the wrong photo in some cases.