I want to select "Apple" then output "John" and "Michelle". I try to run the code but it is not working. Please help.
select @start := title as 'title', id, parent
from mytable
join
(select @start := 0) temp
where parent = @start and title = "Apple";