Categories


Shopping Cart
items


Top » Catalog » Luer
1146 - Table 'agrihealthie.products_discounts' doesn't exist

select count(*) as total FROM (select pd.products_name, p.products_image, p.products_model, p.products_quantity, p.products_id, p.manufacturers_id, p.products_price, sicon.products_id as has_specialoffer, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id left join specials_retail_prices s on p.products_id = s.products_id, products_to_categories p2c LEFT OUTER JOIN (select DISTINCT fd.products_id, fd.products_name, fd.products_price, fd.products_tax_class_id, fd.products_image, NULL as specials_new_products_price from ( ( SELECT DISTINCT p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, NULL as specials_new_products_price FROM get_1_free g1f LEFT JOIN products p ON p.products_id=g1f.products_id LEFT JOIN products_description pd ON p.products_id=pd.products_id where p.products_status = '1' and pd.language_id = '1' and find_in_set('0', products_hide_from_groups) = 0 and g1f.status = '1' and g1f.get_1_free_expires_date > NOW() and (g1f.customers_group_id = '0' or g1f.customers_group_id = '0') and g1f.customer_id=0 and p.products_id IN (SELECT products_id FROM products_to_categories) order by p.products_id DESC ) UNION ( select DISTINCT p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, NULL as specials_new_products_price FROM products_discounts pdi LEFT JOIN products p ON p.products_id=pdi.products_id LEFT JOIN products_description pd ON p.products_id=pd.products_id where p.products_status = '1' and p.products_id IN (SELECT products_id FROM products_to_categories) and pd.language_id = '1' and p.products_status = '1' and pdi.date_start<=NOW() and NOW()<=pdi.date_end and pdi.customers_group_id=0 order by p.products_id desc ) ) fd ) sicon ON sicon.products_id=p2c.products_id left join categories c using(categories_id) where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '193' and find_in_set('0', products_hide_from_groups) = 0 and find_in_set('0', c.categories_hide_from_groups) = 0 order by p.products_ordered DESC, final_price DESC, p.products_quantity DESC) t

[TEP STOP]