UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'LXmeOkeonzZn1fEy2XZAsjYeS0YPXAWBJ+ijmHbFz1M='
WHERE
key_id = '630213bd096204e26e321d91d3cdb1e20362b9c08b8177fcaac28ba9b0b4804b'
AND (
token = 'LXmeOkeonzZn1fEy2XZAsjYeS0YPXAWBJ+ijmHbFz1M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)