$pdo = $db_con->prepare("SELECT COUNT(*) FROM table WHERE Age=:Age AND ClientID=:ClientID AND LastName=:LastName");
$pdo->bindValue(':Age', $_SESSION['Age']);
$pdo->bindValue(':ClientID', $ID);
$pdo->bindValue(':LastName', $Last_Name."%");
$pdo->execute();
Adding the wildcard after $Last_Name is causing the statement to produce no results.
If the value for $Last_Name is Smith that produces a results but only if the wildcard is not there. I have tried the wildcards on both sides and the same thing happens.
No errors are generated.