I keep getting a SQL error on the page and the statement that is shown as having the issue is correct as far as I can tell.
$sql_query = sprintf('INSERT into %s SET test_id="%s", user_name="%s", score=%u, date=now(), time=%u, result_ip="%s"',
TABLE_RESULTS,
SQL::esc($this->filename),
$name...