select userID,randStr from sepet where durum = 0 AND tarih < '2017-11-22 15:02:44' group by randStr