Data fetching - query filter using Next.js router.query returns error. - Supabase