Please check your PDO Setting
setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
And if you call beginTransaction();
, dont forget to call commit();
But actually, if you already set PDO::ATTR_EMULATE_PREPARES
to TRUE, you don't need to call beginTransaction();
and commit();