avoiding issue with string error code of PDOException in QueryException