SQLite causing application to restart?

The following block of code executes, then causes my application to restart with no error message returned in the terminal. Subsequent code on the page is also ran before it restarts.

for row in db:nrows("SELECT \* FROM party") do gold = row.gold end

Is this a known problem? [import]uid: 13089 topic_id: 4752 reply_id: 304752[/import]

It seems this is only causing it to restart once, it’ll run fine in the simulator after the restart. [import]uid: 13089 topic_id: 4752 reply_id: 15188[/import]