Well earlier I posted a problem about deleting 1 select that was solved but now I had another problem.
My idea is to create a playlist that prioritizes status 1. Whenever a user posts the video it is inserted with status 1. After the video is played I update it by changing it to 0 status. The playlist will continue playing videos that have status 0
The problem is that when all videos are with status = 0 the playlist will always be catching the same video in case the select below will always get id 7, I am trying to randomize without success.
SELECT * FROM playlist ORDER BY status DESC,id ASC, RAND() LIMIT 1