UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'OZPgy3IELPEic/xbyXsgJFE2hIrRAfSR1CuIbhgGzFM='
WHERE
key_id = '73d13128f7e8013aa2cf3a4a0c3c8055257cd51e7a5f61a2351f63573c754951'
AND (
token = 'OZPgy3IELPEic/xbyXsgJFE2hIrRAfSR1CuIbhgGzFM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)