PDO Fehlermeldung? [Duplikat

Diese Frage hat hier bereits eine Antwort:

Meine PDO-Anweisung funktioniert nicht 1 Antwort

Hier ist ein Ausschnitt aus meinem Code:

$qry = '
    INSERT INTO non-existant-table (id, score) 
    SELECT id, 40 
    FROM another-non-existant-table
    WHERE description LIKE "%:search_string%"
    AND available = "yes"
    ON DUPLICATE KEY UPDATE score = score + 40
';
$sth = $this->pdo->prepare($qry);
$sth->execute($data);

print_r($this->pdo->errorInfo());

Dies sollte mir eine Fehlermeldung geben, da die Tabellen nicht einmal existieren. Ich bekomme jedoch nur Folgendes:

Array ([0] => 00000)

Wie kann ich eine bessere Beschreibung des Fehlers erhalten, damit ich das Problem beheben kann?

Antworten auf die Frage(8)

Ihre Antwort auf die Frage