1054 - Unknown column 'ss.sale_categories_all' in 'where clause'
( select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image from products p, products_description pd, specials s, categories c, products_to_categories p2c where c.categories_status = 1 and c.categories_id = p2c.categories_id and p.products_id = p2c.products_id and p.products_status = "1" and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = "5" and s.status = "1" order by s.specials_date_added DESC )
union
( select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image from products p, products_description pd, products_to_categories p2c, salemaker_sales ss, categories c where c.categories_status = 1 and c.categories_id = p2c.categories_id and p.products_status = "1" and p2c.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = "5" and FIND_IN_SET( p2c.categories_id, ss.sale_categories_all) and ss.sale_status = "1" and (ss.sale_date_start <= now() or ss.sale_date_start = "0000-00-00") and (ss.sale_date_end >= now() or sale_date_end = "0000-00-00") and (sale_pricerange_from <= p.products_price or sale_pricerange_from = "0") and (sale_pricerange_to >= p.products_price or sale_pricerange_to = "0"))
[TEP STOP]
|