title: How to see MySQL statements and error (if any) in CakePHP shell
body: <p>I am using CakePHP 1.3 and writing custom shells to run mundane tasks in cronjobs. I am seeing failed Model->save() from time to time but I don't know anyway to find out what the exact problem is. </p>
  
  <p>Is there a way to display the actual SQL statements executed and warning/error returned by MySQL in a CakePHP shell?</p>
  
  <p>Thanks.</p>