select distinct p.products_id, pd.products_name, p.products_ordered from products p, products_description pd, products_to_categories p2c, categories c where p.products_status = '1' and p.products_ordered > 0 and p.products_id = pd.products_id and pd.language_id = '4' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (c.categories_id = '127' OR c.parent_id = '127') order by p.products_ordered DESC, pd.products_name limit 10