SQL - Advanced Joins
Identify the error in the following SQL query joining three tables:
SELECT P.name, Q.description, R.cost FROM P JOIN Q ON P.id = Q.p_id JOIN R ON Q.id = R.q_id WHERE R.cost > 100;
