Exemplo :
$query = "update tabela set coluna1 = 1 where id = {$id_m} union
update tabela set coluna2 = 1 where id = {$id_v}";
UNION is used to combine the result from multiple SELECT statements into a single result set. https://dev.mysql.com/doc/refman/5.0/en/union.html
A princípio é utilizado só em SELECT.