inside a mysql table there are several classifieds with the rows ID, title, advertiser_id
In order to omit duplicated content inside my sitemap I am trying to retrieve a list where title and advertiser are unique.
My sql stmt looks like this:
SELECT distinct concat(cl.title, cl.advertiser_id) AS uniques, cl.ID ...
unfortunatelly this does not work as expected. The result looks like this:
uniques ID title
Mobile Wellnessmassage ( Kreis Soest)58091 26608 Mobile Wellnessmassage ( Kreis Soest)
Mobile Wellnessmassage ( Kreis Soest)58091 24465 Mobile Wellnessmassage ( Kreis Soest)
Any ideas how I could restrict the result to a dataset with uniques?
Thank you for any help