I have the following database model:
criteria table: criteria_id criteria_name is_range 1 product_category 0 2 product_subcatego