0 -

select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id) join tags_products tp on tp.products_id = p.products_id join tags_description td on (td.tags_id,td.languages_id) = (tp.tags_id,'4') join tags t on (t.tags_id,t.categories_id) = (td.tags_id, 1) join tags_categories tc on (tc.categories_id = t.categories_id and tc.categories_public = 1), products_description pd, categories c, categories_description cd, products_to_categories p2c where (p.products_status = '1' 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 cd.categories_id = p2c.categories_id and cd.language_id = '4' and () and ) ))

[TEP STOP]