Thanks r937! i really appreciate your help.
your query is just what I was looking for. I didn't even know it was possible to do such Mysql queries, so I also learned a few things
btw, let's say this query is run many many times (suppose there many simultaneous profile pages views) will it still be less resource demanding then creating the table with indexes I suggested and pulling one record out of it for each view?