【週刊ドットインストール】 もうすぐ15周年を迎えます、コードを半分捨てた思い出
last_insert_id()で取得できるIDはcommentsテーブルのIDですか?
last_insert_id()
comments
説明の流れから、postsテーブルのlast_insert_id()を取得しているように思えました。
posts
この回答を見るにはプレミアムプランへの登録が必要です