UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'OFUiWRRu/lwzH7Bm1mAr7x21Z67IdDMDDqQloTYiDcQ='
WHERE
key_id = '042b4d6d57ba6e5b7b4543dd8878fbd50026df0cec9ab71a509e5f9bf80e8e81'
AND (
token = 'OFUiWRRu/lwzH7Bm1mAr7x21Z67IdDMDDqQloTYiDcQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)