UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'U8CN705oW3FGoxb+2NeShto4ql1TXTzfDqA0Gp/MfoU='
WHERE
key_id = '63d19075f290e8c61448adefd238593849c55dd36fdcc01235101f6bdab10da6'
AND (
token = 'U8CN705oW3FGoxb+2NeShto4ql1TXTzfDqA0Gp/MfoU='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)