English horse Tack. Horse Blankets. Unique horse gifts for horse lovers. Beautiful horse jewelry.
3065 - Expression #1 of ORDER BY clause is not in SELECT list, references column 'neteq_netequestrian.productstats.intelligent_sort_order' which is not in SELECT list; this is incompatible with DISTINCT

SELECT DISTINCT products.products_id, seo_cpath , products.seo_keyword_01, products_name, products_description, IF(products_quantity < 1 AND allow_dropship <> 1,1,0) unavailable, product_new, product_hot, products_quantity , products_price, specials_new_products_price, customers_group_price, stores_price, msrp, IF( stores_price > 0,stores_price, IF(specials_new_products_price > 0 AND specials_new_products_price < products_price AND (specials_new_products_price < customers_group_price OR customers_group_price=0 OR customers_group_price IS NULL),specials_new_products_price, IF(customers_group_price > 0 AND customers_group_price < products_price AND customers_group_price IS NOT NULL,customers_group_price, products_price ) ) ) final_price , suppliers_dropship_availability_name, suppliers_dropship_availability_text_style, suppliers_dropship_availability_image FROM products LEFT JOIN products_description USING(products_id) LEFT JOIN products_extra USING(products_id) LEFT JOIN productstats USING(products_id) LEFT JOIN manufacturers USING(manufacturers_id) LEFT JOIN suppliers USING(suppliers_id) LEFT JOIN suppliers_dropship_availability USING(suppliers_dropship_availability_key) LEFT JOIN stores_price ON stores_price.products_id = products.products_id AND stores_price.store_id = "1" LEFT JOIN specials ON status = 1 AND specials.products_id = products.products_id LEFT JOIN products_groups ON products_groups.products_id = products.products_id AND products_groups.customers_group_id = "0" LEFT JOIN products_seocpath ON products_seocpath.products_id = products.products_id AND products_seocpath.store_id = "1" WHERE 1=1 AND products.products_id IN("") ORDER BY productstats.intelligent_sort_order ASC , products.sort_order ASC , products_description.products_name ASC LIMIT 0, 50

[TEP STOP]