my $sql = "SELECT bug_id, owner, subject, status, assigned FROM BUGS ORDER BY $field";