I simply can’t wrap my brain around how to pull data from two tables. I have the below statement which is not working right - it’s not pulling the email data. I’m guessing it has to do with how I’m trying to write the WHERE statement. I have read SQL documentation about Inner Join, etc., but it’s not clicking.
Could someone lend a helping hand and show me where I’m going wrong? Thanks.
{exp:csvee query="SELECT email, m_field_id_5 email FROM exp_members, exp_member_data WHERE exp_members.member_id = exp_member_data.member_id"}