1054 - Unknown column 'gz.geo_zone_id' in 'where clause'
select p.products_id, p.products_image, p.products_special_text, p.products_model, p.products_color, p.manufacturers_id, p.products_tax_class_id, p.products_price as old_products_price, pd.products_name, if(s.status, s.specials_new_products_price, p.products_price) as products_price, p.products_coming_soon_status, p.address_key, p.products_new_in_start, p.products_hot_item_start, p.products_bestseller_start, p.products_new_in, p.products_hot_item, p.products_bestseller, products_related_tag, p.pwp_group_id from products p left join specials s on p.products_id = s.products_id, products_description pd where p.products_status = '1' and p.products_free_gift_status = '0' and p.products_third_party_status = '0' and p.products_id = pd.products_id and pd.language_id = '1' and (IF(s.status, s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) >= 50.1) and (IF(s.status, s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) <= 100) and (p.products_date_available < now() or p.products_date_available IS NULL) group by p.products_id order by p.products_new desc, p.products_date_added desc limit 12
[TEP STOP]