result should be
Condition 1 Highest bid amount condition 2 if amount same then select first by created_at condition 3 I will have a separate table with units so Let\