UPDATE
cscart_june_setuplock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'EiRZAt5ApfitkxVPLBRF3YmodfiDT8bh37ge6g/B9Lg='
WHERE
key_id = '84185248a0774f3e78968b761d286d28dcd5f6c468df5081a34781e52adf360a'
AND (
token = 'EiRZAt5ApfitkxVPLBRF3YmodfiDT8bh37ge6g/B9Lg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)