In your query when you defined your columns you used the same select statement for the Category and the Lesson, cat.name.
You need to change one of the select statements for either the Category or Lesson.
Kind Regards
You need to change one of the select statements for either the Category or Lesson.
Kind Regards