Código SQL:
Ver original
UPDATE turns SET estado = 1 WHERE id = (SELECT id FROM turns WHERE estado = 0 AND servicio_id = 2 ORDER BY id LIMIT 1);