Your error is likely happening because user is a reserved keyword in Supabase. Normally, you could put the column name without any quotes around it, but because it is reserved you have to put it in double quotes like so: "user".
user
"user"