UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'fJFHZDqua41QawH+B9N0/tkXtX9NvZ7ZN0C8LnSA2aQ='
WHERE
key_id = '677516300c81145018e87709848fecb6896f4be3c43845708840a2ec6444a62a'
AND (
token = 'fJFHZDqua41QawH+B9N0/tkXtX9NvZ7ZN0C8LnSA2aQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)