First of all, try to avoid using the reserved words as the field names
USE your_table_name IN0ALIAS PARENTS
USE your_table_name AGAININ0ALIAS CHILDS
* select all childs from top recordGOTOPSELECT Tname FROM CHILDS INTOCURSOR cRelations WHERE childs.pid=parents.idBROWSEnowait