sql_current for current or last sql attempt