PostgreSQL DISTINCT ON con diferentes ORDER BY

Quiero ejecutar esta consulta: SELECT DISTINCT ON (address_id) purchases.address_id, purchases.* FROM purchases WHERE purchases.product_id = 1 ORDER BY purchases.purchased_at DESC Pero me sale este error: PG :: Error: ERROR: las expresiones SELECT DISTINCT ON deben coincidir con las...