"Are you sure all values were indeed correctly inserted? My first guess would be that the port and country fields are empty in your database."
May be you are right...but why?
Query likely to be correct stated..and i think Insert query should return errstr in such situation, should'nt it?