Código MySQL:
Ver original auctions_flight.`date`,
origins.code
as origin_code
, destinations.name
as destination
, destinations.code
as destination_code
, auctions_flight.num_seating,
auctions_flightprice.Price,
auctions_flightprice.currency
auctions_flightprice
ON auctions_flight.price_id
= auctions_flightprice.id
locations_location
as destinations
ON auctions_flight.destination_location_id
= destinations.id
locations_location
as origins
ON auctions_flight.origin_location_id
= origins.id
destination_location_id,
`date`,
FROM auctions_flightprice
destination_location_id,
`date`
) Sbc
ON auctions_flightprice.Price
=Sbc.MPrice
AND Sbc.origin_location_id
= auctions_flight.origin_location_id
AND Sbc.destination_location_id
= auctions_flight.destination_location_id
AND Sbc.
`date` = auctions_flight.
`date` WHERE auctions_flight.num_seating
>= 3 AND auctions_flightprice.currency
= 'MXN'
Esto correra mas y creo que debe dar lo mismo....
(Creo)