Like a seedy old fart haha
Happy birthday Bren.
No worries buddy, I've sorted it out now anyway. I must've been missing something simple last time because now it's working just by referencing m.memberid without having to specifically incorporate that table in the subquery.
Since you mention it though... I might have to pick your brain later about stored procedures Is that the same thing as 'views' or something else?