All pastes #161353 Raw Edit

Unnamed

public sql v1 · immutable
·published 2006-09-05 09:46 UTC
rendered paste body
SELECT p.products_id, p.products_image, p.products_tax_class_id, s.status AS specstat, s.specials_new_products_price, p.products_priceFROM products pLEFT JOIN specials s ON p.products_id = s.products_idLEFT JOIN featured f ON p.products_id = f.products_idWHERE p.products_status = '1'AND f.status = '1'ORDER BY p.products_id DESCLIMIT 0 , 30