Putting array into table

Tables expect an array of objects, and you’re feeding it a one-dimensional array. All there is in that row is the value “li-po”. Instead, it needs to be an object.

You might consider using the distinct function in the query. The function returns a one dimensional array. Then, do the for loop on that to create an object array like what you’re doing. You wouldn’t need to use the getUniqueTitles function.