Note:
This method may not return a meaningful or consistent result across different PDO drivers, because the underlying database may not even support the notion of auto-increment fields or sequences.
select IDENT_CURRENT('tableName');
или select SCOPE_IDENTITY();
после успешной вставки.