Write SQL query to solve given problem: List the ID and years in program for students taught by advisor with ID 5.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T1.p_id, T2.yearsInProgram FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.p_id_dummy = 5