- Fix Photo.created_at → Photo.added_at (column doesn't exist) - Fix Postgres DISTINCT + ORDER BY conflict by using a subquery for tag_id filtering instead of JOIN + DISTINCT on the outer query Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>