我有这个查询:
SELECT queue.first_dealer, queue.second_dealer, queue.status
FROM queue
WHERE queue.status = 3
AND queue.first_dealer = $user_id
OR queue.second_dealer = $user_id
AND queue.status = 3
ORDER BY id DESC
LIMIT 5
但有时 first_dealer 或 second_dealer 可以相同,如果它们相同,我想跳到下一条记录。