pdo prepared statements with wildcards
This could be an alternative:
$className = '%' . $this->className . '%';
$query->bind_param('s', $className);
It can work with bind param too in following way:
$name = "%$name%";
$query = $dbh->prepare("SELECT * FROM `gc_users` WHERE `name` like :name");
$query->bindParam(':name', $name);
$query->execute();