How can an Indian get PCC if living in Spain for last 10 years?

Hi , I live in Spain from last 10 year . Now I am going to apply Spanish passport and I need P.C.C , my family member applied for me. But they rejected bcoz they said only mother, father, brother, sister can apply. In my family my mother, father brother all they live outside of India . I’m from Punjab . Can u help me , how can I get pcc.

You have to apply Indian PCC at Indian embassy in Spain.