Subquery not working

So as u can see in te pics I am trying to get first from a subquery the firstAvailableSlot. And than in the main query trying to get some doctor infos and only the availableSlots with same doctorId but getting error
Screenshot_2024-07-21_at_17.08.52.png
Screenshot_2024-07-21_at_17.09.09.png
Was this page helpful?