Sobre nuestros Promoción de Temporada

select distinct p.*, pd.* from products p left join specials s on p.products_id = s.products_id left join products_to_categories p2c ON p2c.products_id = s.products_id left join categories c on c.categories_id = p2c.categories_id, products_description pd where p.products_id = pd.products_id and p.products_status = 1 and s.status = 1 and p2c.categories_id NOT IN (SELECT c.categories_id FROM categories c WHERE c.categories_id = 96 OR c.parent_id = 96 OR c.parent_id = 96 OR c.parent_id IN (SELECT categories_id FROM categories WHERE parent_id = 96)) order by c.sort_order, p.products_sort_order