ring.id = 530497 filter.purchasability = purchasable page.num = 1
SELECT DISTINCT(ci.sub_id_fk) AS sub_id FROM catalog_item AS ci INNER JOIN catalog AS c ON ci.cat_id_fk=c.cat_id INNER JOIN hasring AS hr ON ci.sub_id_fk=hr.sub_id_fk INNER JOIN rings AS r ON hr.rings_fk=r.rings_id WHERE r.rings_id = 530497 AND c.free = 1 AND c.purchasable IN (1,2,4,5) LIMIT 50
//zinc12.docking.org/results/combination?ring.id=530497&filter.purchasability=purchasable