La query per aggregare i campi delle tue 2 tabelle è fatta all'incirca così:

SELECT A.*, B.* FROM members AS A INNER JOIN profiles AS B ON A.mem_id = B.mem_id ...

Poi al posto dei ... ci piazzi tutte le condizioni di WHERE che vuoi indicando a che tabella appartengono i campi:

ES.
WHERE A.fname = 'mario'

ed esagerando puoi mettere anche l'ORDER BY, sempre con A.campo o B.campo