Using prepared statements with parametrised values is not simply another way to dynamically create a string of SQL. You create a prepared statement at the database, and then send the parameter values alone.
So what is probably sent to the database will be a PREPARE ...
, then SET ...
and finally EXECUTE ...
.
You won't be able to get some SQL string like SELECT * FROM ...
, even if it would produce equivalent results, because no such query was ever actually sent to the database.