Forum Moderators: open
SELECT user_id FROM user_reg WHERE year='2012' AND end_date IS NULL
SELECT contact_id FROM user_contacts WHERE user_id='From Above User_ID'
SELECT email, phone, mobile FROM contacts WHERE id='From Above Contact_ID'
SELECT ur.user_id, uc.contact_id, c.email, c.phone, c.mobile
FROM user_reg ur
INNER JOIN user_contacts uc ON ur.user_id=uc.user_id
INNER JOIN contacts c ON uc.contact_id=c.id
WHERE ur.year='2012' AND ur.end_date IS NULL