Sorry, found what I was doing wrong...
Because I was preparing the sql outside the loop, the length of the column was determined by the lenght of the first row. I have now moved the prepare statement just above the line $query->execute($user_login, $user_first_name, $user_last_name); and it...