You have missed the table alias 'a' in the joining.
Try this-
DsLoginData = SqlHelper.SqlHelper.ExecuteDataset(conn, CommandType.Text, "Select documentid,title from document a inner join Company b on a.companyid = b.companyid where b.ParentCompanyId = 428 ");
Hope, it helps :)