Given:




PHP 7.4 has an escape character to provide the solution:


$stmt = $pdo->prepare('SELECT \* FROM tbl WHERE json_col *??* ?');