qb should fail when you define duplicate field names, but it is ignoring them
see this code
This wil return an array of structs, but with only four struct keys instead of 6. Actually it should fail because both equipment and rack have id and name fields, but I forgot to alias them. Should fail, but it is silenty ignoring the offending duplicate names.
This solves the problem. In SQL this would also fail without aliases I guess.