UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'OhU3B6jgWAEPxUmtIcMxpEDRCgaWi4+sRc3gE44QN1g='
WHERE
key_id = '64a300a076c8b2d84d82d676ced819bede50d31608af727297291125270f7ddd'
AND (
token = 'OhU3B6jgWAEPxUmtIcMxpEDRCgaWi4+sRc3gE44QN1g='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)