title: select record that was not selected mysql php
body: <p>I have some data in mysql table. I want each record to be used only once. So I have "is_used" column. </p>
  
  <p>But if someone select data before the update query he will not know that record is already used.</p>