Weird Function Error

I’m trying to implement MySQLite for the users of my addon who still use Mysqloo, but upon using the following code I get this error:


[ERROR] addons/ras/lua/ras/core.lua:66: '(' expected near 'callback'
1. unknown - addons/ras/lua/ras/core.lua:0

My code:



local function MakeConfig()
	MySQLite.query("CREATE TABLE exempt(id INT NOT NULL AUTO_INCREMENT, player VARCHAR(255) NOT NULL, type VARCHAR(255) NOT NULL, admin VARCHAR(255) NOT NULL, expires TINYINT(1) NOT NULL, expire_time INT)",
	function callback(result, lastInsert)
		MsgC(Color( 61,252,246 ), "
", "The query produced this result: ".. result .."& this was last inserted: "..lastInsert)
	end,
	function errorCallback(error, query)
		MsgC(Color( 61,252,246 ), "
", "The query "..query.."caused the following error "..error)
	end)
end


You don’t set a function name


local function MakeConfig()
	MySQLite.query("CREATE TABLE exempt(id INT NOT NULL AUTO_INCREMENT, player VARCHAR(255) NOT NULL, type VARCHAR(255) NOT NULL, admin VARCHAR(255) NOT NULL, expires TINYINT(1) NOT NULL, expire_time INT)",
	function(result, lastInsert)
		MsgC(Color( 61,252,246 ), "
", "The query produced this result: ".. result .."& this was last inserted: "..lastInsert)
	end,
	function(error, query)
		MsgC(Color( 61,252,246 ), "
", "The query "..query.."caused the following error "..error)
	end)
end