select userID,randStr from sepet where durum = 0 AND tarih < '2018-11-18 12:27:05' group by randStr