Yes you're right about this one
`$sql = 'SET STATISTICS PROFILE ON; ' . $query['sql'] . ' SET STATISTICS PROFILE ON;';`