debug sql inside cakephp model

$dbo = $this->getDatasource();
$dbo->fullDebug = true;

$this->find(‘all’, …

$logs = $dbo->_queriesLog;
$log = end($logs);
print_r($logs);exit;