UPDATE users
SET step = 'confirmed'
FROM (
select string_to_array(translate(r::text, '" )(\n-',''),',') AS rs
from (values (${r})) as q (r)
) qq
WHERE users.number = any(qq.rs)
RETURNING *;
UPDATE users x
SET step = 'confirmed'
FROM users y
WHERE x.number = y.number
AND x.number = 1
RETURNING y.number AS number, y.step AS old_step, x.step;