Cobalah seperti ini, saya tidak memiliki skema untuk mengujinya sendiri tetapi saya merasa itu harus berhasil (atau sesuatu seperti ini)
SELECT * FROM questions, connections
LEFT JOIN answers ON (questions.id = answers.id AND
connections.username2 = answers.username)
where connections.username1 = 'mikha';
akhirnya seperti ini
SELECT * FROM questions
LEFT JOIN answers ON (questions.id = answers.id)
LEFT JOIN connections ON (connections.username2 = answers.username)
where connections.username1 = 'mikha';
EDIT:Saya menemukan ini di dokumentasi
Jadi untuk kasus Anda mungkin
SELECT * FROM questions
LEFT JOIN connections
LEFT JOIN answers ON (connections.username1 = 'mikha' AND questions.id = answers.id AND
connections.username2 = answers.username)