I have table like that:

```
 ID NAME SURNAME MotherID FatherID
    0   JJ   smi       NULL    NULL
    1   ja   rly       NULL    NUL
    2   ak   smi       0        1
    3   ol   smi       0        1
    4   oa   woo       2        3
    5   oe   boo       2        3

    etc.

```

I need query that with specific parameter as NAME and surname will return me all siblings of a person.
Expected output

```
NAME SURNAME FATHERNAME FATHERSURNAME MOTHERNAME MOTHERSURNAME
AK   SMI        JA        RLY             JJ        SMI        
OL   SMI        JA        RLY             JJ        SMI 

```

I tried 

```
SELECT 
      a.name,
      a.surname 
FROM PEOPLE a, PEOPLE b
WHERE (b.name = 'ak' AND b.surname ='smi' AND 
      (b.motherID = a.ID OR b.fatherid = ID))

```