I am trying to run a query in which my parameter is used in the select clause of the query. The query i am using is similar to the one i have pasted in code area. Anybody having a clue how to use parameter in select clause? When i read fields, it puts null instead of the parameter value. The query is parsed successfully and when i run the report i got error while filling the report which is "Unknown column name : if(date_of_invoice >= null, '1', '0')"Please help. Thanks. Code:SELECT if(date_of_invoice >= $P{para}, '1', '0')FROM supplier_payment_invoicesWHEREBlock_ID = 10