I need to make a MySQL query in the following situation:
I have two ads and likes tables; when a user likes an ad, a record is created in the likes table with the user id and ad id Enjoyed it.
You need to capture the most tanned ads. Someone has an idea. I'm using MySQL and PHP.