Fixed an Error in NinjaORM.pm

Hey G$/Kate,

Found an error in NinjaORM.pm that prevented order exports a few weeks back -- just had time today (I took today off) to figure out this whole Github thing and submit the patch. I added a bunch of error handling around the SQL call, following the pattern of the other error handling in the same sub.

HTH!

Jacob