is UNION available in PHQL?

because i have error while performing my query, but i already tested it on mysql console, and it works.

here is my query:

SELECT, SUM(d.amount) as total FROM App\Models\Modela a JOIN ( SELECT b.id_a, b.amount FROM App\Models\Modelb b UNION ALL SELECT c.id_a, c.amount FROM App\Models\Modelc c ) AS d ON d.id_a = a.id_a GROUP BY a.id_a