I would like to add a third table to my query now

I tired the inner join but I get an inner join error on line 14 (which is the P.id line).
Any ideas?
SELECT
C.cb_businessname,
C.firstname,
C.lastname,
C.cb_subs_inv_address_street,
C.cb_subs_inv_address_city,
C.cb_subs_inv_address_state,
C.cb_subs_inv_address_zip,
C.cb_phone,
C.user_id,
S.expiry_date,
S.plan_id,
S.user_id
P.id
FROM
jml_comprofiler C INNER JOIN jml_cbsubs_subscriptions S
ON C.user_id = S.user_id
INNER JOIN jml_cbsubs_subscriptions S
ON P.id = S.plan_id
WHERE
({$REQUEST:start|empty:''} = '' OR S.expiry_date >= {$REQUEST:start|empty:''})
AND
({$REQUEST:End|empty:''} = '' OR S.expiry_date < {$REQUEST:End|empty:''})