fixed problem with pdo::select on delete