I have the following code and am getting an "Incorrect syntax near 'null'" error when it runs.
var queryResult = qie.doQuery(
"myDatabase",
"select patmname, patdob, patsex, pataddr2, pataddr1, patcity, patstate, patzip\n" +
" from analyzer_tci.dbo.patdemo_t\n" +
" where acctno = ('" + messageCache.getValue('Acct Number') + "'");
Here is the error I receive

Why is it not working?