QUERY = SELECT DISTINCT CubeCart_options_bot.option_id FROM CubeCart_options_bot INNER JOIN CubeCart_options_top ON CubeCart_options_bot.option_id = CubeCart_options_top.option_id INNER JOIN CubeCart_inventory ON CubeCart_options_bot.product = CubeCart_inventory.productId WHERE show_on_filter='1' AND man='100 ORDER BY option_id ASC