Write SQL query to solve given problem: Who are the professors who gave advice to students in the 12th years of program?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T1.p_id_dummy FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_12'