Syntax Error from cidlookup

Hello,

I get the following error:

[Oct 7 22:38:46] VERBOSE[19615] logger.c: – Executing [08123456789@from-trunk:2] Gosub(“Local/08123456789@from-sip-external-4c79,2”, “cidlookup|cidlookup_3|1”) in new stack
[Oct 7 22:38:46] DEBUG[19615] pbx.c: Function result is ‘’
[Oct 7 22:38:46] WARNING[19615] func_db.c: DB_EXISTS requires an argument, DB(/)
[Oct 7 22:38:46] DEBUG[19615] pbx.c: Function result is ‘(null)’
[Oct 7 22:38:46] WARNING[19615] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected ‘=’, expecting $end; Input:
= 1
^
[Oct 7 22:38:46] WARNING[19615] ast_expr2.fl: If you have questions, please refer to doc/channelvariables.txt in the asterisk source.
[Oct 7 22:38:46] DEBUG[19615] pbx.c: Launching ‘GotoIf’
[Oct 7 22:38:46] VERBOSE[19615] logger.c: – Executing [cidlookup_3@cidlookup:1] GotoIf(“Local/08123456789@from-sip-external-4c79,2”, “?cidlookup|cidlookup_return|1”) in new stack
[Oct 7 22:38:46] DEBUG[19615] pbx.c: Not taking any branch

from:

[cidlookup]
include => cidlookup-custom
exten => cidlookup_2,1,LookupCIDName
exten => cidlookup_2,n,Return()
exten => cidlookup_3,1,GotoIf($[${DB_EXISTS(cidname/${CALLERID(num)})} = 1]?cidlookup,cidlookup_return,1)
exten => cidlookup_3,n,MYSQL(Connect connid localhost cid cid cid)
exten => cidlookup_3,n,MYSQL(Query resultid ${connid} SELECT\ name\ FROM\ cid\ WHERE\ number\ like\ ‘%${CALLERID(num)}%’)
exten => cidlookup_3,n,MYSQL(Fetch fetchid ${resultid} CALLERID(name))
exten => cidlookup_3,n,MYSQL(Clear ${resultid})
exten => cidlookup_3,n,MYSQL(Disconnect ${connid})
exten => cidlookup_3,n,Set(DB(cidname/${CALLERID(num)})=${CALLERID(name)})
exten => cidlookup_3,n,Return()
exten => cidlookup_return,1,LookupCIDName
exten => cidlookup_return,n,Return()

; end of [cidlookup]

Is this likely to be a configuration issue or some other anomoly?

Thanks.