UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ME26MneAD69beh2SVx2jf5RjY5TiJbUDiPMet/MNL04='
WHERE
key_id = '91a7f0497428c5cfc3c7f30f966ad61c3880ce637ebd22ed2740a142b50fe301'
AND (
token = 'ME26MneAD69beh2SVx2jf5RjY5TiJbUDiPMet/MNL04='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)