query database empty values

hi i have a query that i am using to fetch the

data from post grace sql to appian  but while i am making a manual query  in that query i have empty values  as some contion 

in the above condition we have empty values  whic is not considerding by plugin and displaying the below error 

please give me any solution on this 

  Discussion posts and replies are publicly visible