UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'xpt/GzQqVZfK6yueibKIrZ/kSptFQpels3gstituoPo='
WHERE
key_id = '0c90a14927558d86c85e38fb4a3b76497ea91f7d4b0402c57037dd0b2e915a77'
AND (
token = 'xpt/GzQqVZfK6yueibKIrZ/kSptFQpels3gstituoPo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)