Error creating cohort queries on reporting module

I have install openmrs 2.2.1 with reporting module 1.23.0. I am getting an error trying to create cohort queries which I have notice is also on demo openmrs and it uses the same version of reporting module. How to test it

  1. login openmrs
  2. Go to Administration
  3. Go to Manage Report Definitions
  4. Cohort Queries
  5. Create Age query by define age range i.e 0 - 5 years old or Gender query like male

hey @jerome24

why not try reproducing it at

Here it seems to be working fine. But I also notice that here it is openmrs 2.6.0 and reporting module 1.24.0 where by on addons the latest reporting module is 1.23.0.