select userID,randStr from sepet where durum = 0 AND tarih < '2017-11-23 02:39:32' group by randStr