select * from tempurls ORDER BY rand() limit 0,1