I have three separated queries. Can I mix them and create one query instead of these three queries?
Query1:
UPDATE users SET reputation = reputation + 15,
money = money + (SELECT SUM(responder_amount)
FROM money WHERE post_id = :post_id AND paid IS NULL)
WHERE id = :Responder
Query2:
UPDATE users SET reputation = reputation + 2,
money = money + (SELECT SUM(op_amount)
FROM money WHERE post_id = :post_id AND paid IS NULL)
WHERE id = :OP
Query3:
UPDATE money SET paid = 1 WHERE post_id = :post_id
Can I make one query made up of those three queries?