Asterisk PBX and MYSQL Syntax

I have a the following dial plan:
[Test]
exten => s,1,MYSQL(Connect CONNID 10.0.5.20 root password timecard)
exten => s,n,GotoIf($["${MYSQL_STATUS}" = “-1”]?lbl_Test_0:)
exten => s,n,MYSQL(Query ResultID ${CONNID} SELECT\ COUNT(*)\ FROM\ blockedcallerid\ WHERE\ blockedcallerid.callerid=’${LogCallerID}’\ AND\ blockedcallerid.blocked\ =\ 1;)
exten => s,n,GotoIf($["${MYSQL_STATUS}" = “-1”]?lbl_Test_0:)
exten => s,n(lbl_Test_1),MYSQL(Clear ${ResultID})
exten => s,n,GotoIf($["${MYSQL_STATUS}" = “-1”]?lbl_Test_2:)
exten => s,n,MYSQL(Disconnect ${CONNID})
exten => s,n,GotoIf($["${MYSQL_STATUS}" = “-1”]?lbl_Test_2:)
exten => s,n(lbl_Test_2),Return()
exten => s,n(lbl_Test_0),NoOp(ERRORSQL Command Failed)
exten => s,n,Goto(lbl_Test_1)

The line with SQL Query is where I am having problems:
exten => s,n,MYSQL(Query ResultID ${CONNID} SELECT\ COUNT(*)\ FROM\ blockedcallerid\ WHERE\ blockedcallerid.callerid=’${LogCallerID}’\ AND\ blockedcallerid.blocked\ =\ 1;)

The CLI Debug window has the following displayed when it hits the SQL Query Line:
– Executing [s@Test:3] MYSQL(“SIP/238-acf019e0”, “Query ResultID 9 SELECT COUNT(*”) in new stack
[Feb 18 13:21:33] WARNING[20598]: app_addon_sql_mysql.c:270 aMYSQL_query: aMYSQL_query: mysql_query failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1

The MYSQL query.log just shows: SELECT COUNT(*
The SQL query is being truncated after the *

My question is what is the syntax for the SQL string…

Like " or ’ or you have to escape out *

try count(*)

and you’ll have a little more success.