In my magento store I am trying to retrieve a list of youtube videos from a DB table, some videos are duplicated.
I\'m looking to filter videos by using distinct vid
You can try this:
$collection->getSelect()->distinct(true);
But this will retrieve distinct values based on id. If you want to retrieve videos using distinct video values, you should group by "value".
$collection->getSelect()->group('value');
If you want to debug the query executed :
$collection->getSelect()->__toString();
Hope this helps