Hi, I'm working on a simple dating website with member profiles.
I need to do something really simple, but I'm too tired to do this..
There is a profile table, login table and a profile_view table:
profiles:
profile_id, name, picture, etc..
login:
session_id, username, time, etc..
profile_view
view_id, profile_id, session_id
I want to display 15 most viewed profiles. What is the query I should use?