Root cause: Next.js URL params are always strings, but Locations.id is integer in PostgreSQL. Hasura/PostgreSQL cannot compare varchar with integer without explicit cast. Fix: Parse params.id to integer in LocationsDetail component before passing to Refine useOne().