UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '2v/LEs4nhn7EahGoHuEHNV4x2/bhS+q8vMK38MPtdV0='
WHERE
key_id = 'cfde8b927d5b9e7db87ecb4482fb42cfdb76c1edd4275f849690a99eafa5da73'
AND (
token = '2v/LEs4nhn7EahGoHuEHNV4x2/bhS+q8vMK38MPtdV0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)