se me ocurrió probar esto, pero evidentemente era un intento absurdo porque nunca lo he hecho así que lo más probable es que fallara y falló :)
Código SQL:
Ver originalSELECT IF(
SELECT id_questions FROM answers A
INNER JOIN questions Q
ON Q.id_question = A.id_questions
WHERE Q.id_question = 14,
DELETE a, q
FROM questions q
INNER JOIN answers a
ON q.id_question = a.id_questions
WHERE q.id_question =14,
DELETE * FROM questions
WHERE id_question = 14
);