SELECT
contacts.id as id,
contacts.name as name,
phone.phone as phone,
email.email as email
FROM contacts
LEFT JOIN phone
ON
contacts.phone = phone.phone_id
LEFT JOIN email
ON
contacts.email = email.email_id
LIMIT 6
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