Changed from lastInsertedId to LastInsertedID.