SELECT
c.id AS id,
c.name AS name,
phone.phone AS phone,
email.email AS email
FROM (SELECT id, name, phone, email FROM contacts LIMIT 6) AS c
LEFT JOIN phone
ON c.phone = phone.phone_id
LEFT JOIN email
ON c.email = email.email_id