Works great thanks
one last question
I tried adding other fields and it didn't work
message says:
you tried to execute a query that does not include the specific expression 'id' as part of an aggregate function.
SELECT adverts.id, adverts.title, adverts.name, adverts.url, Count(adverts.url) AS...