Warning: pg_query() [function.pg-query]: Query failed: ERREUR: la colonne « attr_lastmod DESC » n'existe pas in /home/dyn/public_html/www.dynamips.com/php-include/class.pgsql.php on line 87
SELECT art.id AS id , round(art.cost ,2) as cost , round(art.bestprice, 2) as bestprice , man.label AS mlabel , art.manufacturer_id , art.designation AS designation , art.articlenumber AS number , round(art.price, 2) AS pht , art.defaultimg AS defaultimg , art.refmanufacturer AS refmanufacturer , art.urlmanufacturer AS urlmanufacturer , round(((1 + tva.coef) * art.price), 2) AS pttc , stk.quantity AS stock , art.status_code , art.deee_id , deee.priceht , deee.pricettc , min(life.date) as lastmod, art.category_id, cat.label as catlabel, art.description AS description FROM vue_active_article art JOIN deee ON art.deee_id = deee.id JOIN category cat ON cat.id = art.category_id JOIN manufacturer man ON man.id = art.manufacturer_id JOIN tva ON tva.id = art.tva_id LEFT JOIN stockstate stk ON stk.article_id = art.id AND stk.stock_code = 'BUY' JOIN articlelife life ON life.articlenumber_id = art.articlenumber GROUP BY art.articlenumber , art.cost , art.bestprice , art.id , man.label , art.designation , art.articlenumber , art.price , tva.coef , art.price , stk.quantity , art.deee_id , art.manufacturer_id , art.defaultimg , art.refmanufacturer , art.urlmanufacturer , art.status_code , deee.priceht , deee.pricettc , art.category_id, cat.label, art.description ORDER BY "attr_lastmod DESC", art.manufacturer_id ASC, art.manufacturer_id ASC LIMIT 20