SELECT * FROM table ORDER BY id LIMIT $rand, 1