SELECT * FROM variants where orderid = AND vid != '39788177916059' AND vid != '20342110355515' group by vid, qty, price order by vid desc