MySQL Error Occured
1064: 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 4

QUERY = select * from `icodes_vouchers_types` ivtypes where ivtypes.status ='Active' AND ivtypes.`ID` IN ( select Distinct ivt.`icodes_vouchers_types_ID` from `icodes_vtypes` ivt where ivt.`icodes_vouchers_ID` IN ( Select iv.`ID` from `icodes_vouchers` iv where iv.`pricerunner_retailer_index` = )) ;