Scaffold/Scaffold — pull request #114 by nathggns (2013-05-18 13:12:32+00:00)
Title: Remove usage of last_insert_id

`last_insert_id()` is extremely buggy and can often return `0`. Instead, get the `id` using a select statement.