UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'IT6ilcvPyVSLZIFdUq2bxcLN5Mq0k2KXhUwqjQVruik='
WHERE
key_id = '44362de36544494141d06b499644ea9df4265c25a08775aa38507a68cb71f4c5'
AND (
token = 'IT6ilcvPyVSLZIFdUq2bxcLN5Mq0k2KXhUwqjQVruik='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)