UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '37L5u4XyVdKwC/g6ljUmBM97U8DbdKrK7Heg9mWv4PQ='
WHERE
key_id = '75f73e726ee5ebfe021583472c0cd9a4893d3d9702ff647149f461cd3865acbb'
AND (
token = '37L5u4XyVdKwC/g6ljUmBM97U8DbdKrK7Heg9mWv4PQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)