I'm trying to get the following to run via a single pdo statement
UPDATE `coin_price` SET `coin_id` = 1 WHERE coin_id = 1;
UPDATE `coin_price` SET `coin_id` = 178 WHERE coin_id = 178;
and I am getting the following exception
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UPDATE `coin_price` SET `coin_id` = 178 WHERE coin_id = 178'` at line 1
I am just running
$statement = $this->system[$location]["connection"]->prepare($sql);
$statement->execute();
and getting an exception. I tried with binding and without.
Is what I am doing not possible?
Note : Both queries run fine via PDO by themselves