1054 Unknown column 'pd.products_related' in 'where clause'
in:
[select count(distinct p.products_id) as total FROM (products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c ) LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND (( pd.products_name LIKE '%ac%' OR pd.products_related LIKE '%ac%' OR p.products_model LIKE '%ac%' OR m.manufacturers_name LIKE '%ac%' OR (mtpd.metatags_keywords LIKE '%ac%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%ac%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%electronic.com%' OR pd.products_related LIKE '%electronic.com%' OR p.products_model LIKE '%electronic.com%' OR m.manufacturers_name LIKE '%electronic.com%' OR (mtpd.metatags_keywords LIKE '%electronic.com%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%electronic.com%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%apple%' OR pd.products_related LIKE '%apple%' OR p.products_model LIKE '%apple%' OR m.manufacturers_name LIKE '%apple%' OR (mtpd.metatags_keywords LIKE '%apple%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%apple%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%bluetooth%' OR pd.products_related LIKE '%bluetooth%' OR p.products_model LIKE '%bluetooth%' OR m.manufacturers_name LIKE '%bluetooth%' OR (mtpd.metatags_keywords LIKE '%bluetooth%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%bluetooth%' AND mtpd.metatags_description !='')) and ( pd.products_name LIKE '%product%' OR pd.products_related LIKE '%product%' OR p.products_model LIKE '%product%' OR m.manufacturers_name LIKE '%product%' OR (mtpd.metatags_keywords LIKE '%product%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%product%' AND mtpd.metatags_description !='')) ))]