bdenckla/vsource — Issue #24: to much info in PDO errors
Author: bdenckla
Created: 2011-11-08 00:49:36+00:00
State: open

In particular, I think you only want index 2 of the array returned by errorInfo, i.e. instead of

Array ( [0] => 42S22 [1] => 1054 [2] => Unknown column 'iTaskValue' in 'field list' )

you just want

Unknown column 'iTaskValue' in 'field list'