Unexpected Application Error!

Error: Failed query: select "collections"."id", "collections"."title", "collections"."description", "collections"."creator_id", "collections_places"."data" as "places" from "collections" "collections" left join lateral (select coalesce(json_agg(json_build_array("collections_places_place"."data")), '[]'::json) as "data" from "collection_places" "collections_places" left join lateral (select json_build_array("collections_places_place"."id", "collections_places_place"."latitude", "collections_places_place"."longitude", "collections_places_place"."name", "collections_places_place"."address", "collections_places_place"."short_address", "collections_places_place_images"."data", "collections_places_place_placeCuisines"."data") as "data" from (select * from "place" "collections_places_place" where "collections_places_place"."id" = "collections_places"."place_id" limit $1) "collections_places_place" left join lateral (select coalesce(json_agg(json_build_array("collections_places_place_images"."url", "collections_places_place_images"."blurhash")), '[]'::json) as "data" from (select * from "guide_media" "collections_places_place_images" where "collections_places_place_images"."place_id" = "collections_places_place"."id" limit $2) "collections_places_place_images") "collections_places_place_images" on true left join lateral (select coalesce(json_agg(json_build_array("collections_places_place_placeCuisines"."id", "collections_places_place_placeCuisines"."place_id", "collections_places_place_placeCuisines"."inserted_at", "collections_places_place_placeCuisines"."updated_at", "collections_places_place_placeCuisines_cuisine"."data")), '[]'::json) as "data" from (select * from "place_cuisine" "collections_places_place_placeCuisines" where "collections_places_place_placeCuisines"."place_id" = "collections_places_place"."id" limit $3) "collections_places_place_placeCuisines" left join lateral (select json_build_array("collections_places_place_placeCuisines_cuisine"."name") as "data" from (select * from "cuisine" "collections_places_place_placeCuisines_cuisine" where "collections_places_place_placeCuisines_cuisine"."id" = "collections_places_place_placeCuisines"."id" limit $4) "collections_places_place_placeCuisines_cuisine") "collections_places_place_placeCuisines_cuisine" on true) "collections_places_place_placeCuisines" on true) "collections_places_place" on true where "collections_places"."collection_id" = "collections"."id") "collections_places" on true where "collections"."id" = $5 limit $6 params: 1,1,1,1,b8b3c965-ee08-4098-b953-652049527413,1

Error: Failed query: select "collections"."id", "collections"."title", "collections"."description", "collections"."creator_id", "collections_places"."data" as "places" from "collections" "collections" left join lateral (select coalesce(json_agg(json_build_array("collections_places_place"."data")), '[]'::json) as "data" from "collection_places" "collections_places" left join lateral (select json_build_array("collections_places_place"."id", "collections_places_place"."latitude", "collections_places_place"."longitude", "collections_places_place"."name", "collections_places_place"."address", "collections_places_place"."short_address", "collections_places_place_images"."data", "collections_places_place_placeCuisines"."data") as "data" from (select * from "place" "collections_places_place" where "collections_places_place"."id" = "collections_places"."place_id" limit $1) "collections_places_place" left join lateral (select coalesce(json_agg(json_build_array("collections_places_place_images"."url", "collections_places_place_images"."blurhash")), '[]'::json) as "data" from (select * from "guide_media" "collections_places_place_images" where "collections_places_place_images"."place_id" = "collections_places_place"."id" limit $2) "collections_places_place_images") "collections_places_place_images" on true left join lateral (select coalesce(json_agg(json_build_array("collections_places_place_placeCuisines"."id", "collections_places_place_placeCuisines"."place_id", "collections_places_place_placeCuisines"."inserted_at", "collections_places_place_placeCuisines"."updated_at", "collections_places_place_placeCuisines_cuisine"."data")), '[]'::json) as "data" from (select * from "place_cuisine" "collections_places_place_placeCuisines" where "collections_places_place_placeCuisines"."place_id" = "collections_places_place"."id" limit $3) "collections_places_place_placeCuisines" left join lateral (select json_build_array("collections_places_place_placeCuisines_cuisine"."name") as "data" from (select * from "cuisine" "collections_places_place_placeCuisines_cuisine" where "collections_places_place_placeCuisines_cuisine"."id" = "collections_places_place_placeCuisines"."id" limit $4) "collections_places_place_placeCuisines_cuisine") "collections_places_place_placeCuisines_cuisine" on true) "collections_places_place_placeCuisines" on true) "collections_places_place" on true where "collections_places"."collection_id" = "collections"."id") "collections_places" on true where "collections"."id" = $5 limit $6
params: 1,1,1,1,b8b3c965-ee08-4098-b953-652049527413,1
    at NeonPreparedQuery.queryWithCache (file:///var/task/node_modules/drizzle-orm/pg-core/session.js:41:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async NeonPreparedQuery.execute (file:///var/task/node_modules/drizzle-orm/neon-serverless/session.js:109:20)
    at async Object.serverFn (file:///var/task/chunks/_/router-Bp95BWIH.mjs:19081:22)
    at async server (file:///var/task/chunks/virtual/entry.mjs:877:24)
    at async client (file:///var/task/chunks/virtual/entry.mjs:872:21)
    at async Object.loader (file:///var/task/chunks/_/router-Bp95BWIH.mjs:20367:12)
    at async runLoader (file:///var/task/node_modules/@tanstack/router-core/dist/esm/load-matches.js:384:52)
    at async loadRouteMatch (file:///var/task/node_modules/@tanstack/router-core/dist/esm/load-matches.js:514:9)
    at async Promise.all (index 1)

(NeonPreparedQuery.queryWithCache)