select userID,randStr from sepet where durum = 0 AND tarih < '2019-01-21 20:05:00' group by randStr