UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '53/oRFf/MQTGtGR7GQhfyJO9j1oO9mxpGSFs5092A7s='
WHERE
key_id = 'b7814ebb5bad68476aa7875385e7316650ba2429db7f9dcba6268665b8cb540e'
AND (
token = '53/oRFf/MQTGtGR7GQhfyJO9j1oO9mxpGSFs5092A7s='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)