Issue with import script

I finaly achieve this by updating my punbb database and add the first_post_id to it with this:

ALTER TABLE boulette_topics ADD COLUMN first_post_id int(10);

UPDATE boulette_topics t SET first_post_id = (SELECT p.id FROM boulette_posts p WHERE p.topic_id = t.id ORDER BY p.id ASC LIMIT 1);