UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'H+xtpNS5oY/gMBzqQ/WOLF9E6Aixv2L6t+3TNOougpQ='
WHERE
key_id = '846c7af81b2c47a6c91826d5db582b3ea01d89a78843574afbe289280935afb2'
AND (
token = 'H+xtpNS5oY/gMBzqQ/WOLF9E6Aixv2L6t+3TNOougpQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)