QueryBuilder creates multidimentional array instead of array of objects