Comments - PREPARE Statement
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Using Statement Based Replication the prepare is not replicated and query is replay on slave with unprepared form.
There were a number of related fixes in 10.1.11 (see changelog) - is this still an issue? Suggest reporting a bug if it is.