I'm trying to write an update query for 2 tables, but I'm facing an error, can you help?
I'm using postgresql I'm using sqlc with golang.
UPDATE categories
SET c.slug = $1, tx.name = $2, tx.description = $3
FROM categories c
JOIN categories_translations tx ON c.id = tx.category_id
WHERE c.id = $4 AND tx.category_id = $4 AND tx.language_code = $5;