Looks like the $uids array is unncessary. Just use $fetch?