ilk kullanıcı sorgusunu if'e sokun, eğer etkilenen satır varsa; UPDATE * FROM `data` WHERE user_id = {ilk sorgudan gelen veri} SET hata = 1