Can we not include more than one IN operator with parameter in a query. I am using jasper report with ireport I am trying the following query SELECT invoice.`INVOICE_DATE` AS Date, invoice.`TILL_NO` AS Till_No, time(invoice.CREATED_ON)as "Time", concat(user.first_name," ",user.last_name)as "Cashier", payment_details.`SYS_INVOICE_NO` AS Invoice_No, invoice.`total_amount`, tender_type_level1.`sub_tender1_name` AS Type_of_Coupen, payment_details.`coup_denomination`, payment_details.`coup_qty`, payment_details.`coup_amount_paid` FROM `user` user, `invoice` invoice, `payment_details` payment_details, `tender_type_level1` tender_type_level1 WHERE (invoice.SYS_INVOICE_NO = payment_details.SYS_INVOICE_NO) and (invoice.CASHIER_ID = user.USER_ID) and payment_details.sub_tender1_id = tender_type_level1.sub_tender1_id and (invoice.BILL_VOID_FLG IS null and payment_details.PAYMENT_VOID_FLG = 'N' and payment_details.TENDER_ID = 'CP') AND invoice.cashier_id=(case when($P{cashierId})! = '' then($P{cashierId})else invoice.cashier_id end) AND invoice.invoice_date >= date($P{fromDate}) AND invoice.invoice_date <= date($P{toDate}) AND $X{IN,invoice.TILL_NO,tillNo} AND $X{IN ,tender_type_level1.sub_tender1_name,typeOfCoupon} AND $X{IN,invoice.sys_invoice_no,invoiceNo} when i give preview for the same i get this error com.jaspersoft.ireport.designer.errorhandler.ProblemItem@1b4e7ae Cannot cast from Collection to String net.sf.jasperreports.engine.design.JRDesignExpression@162bdd8 com.jaspersoft.ireport.designer.errorhandler.ProblemItem@1d690fb Cannot cast from Collection to String net.sf.jasperreports.engine.design.JRDesignExpression@17ff60e How can that be rectified?