Using API array result in Query

,

Check out this post