UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '4s7j/JBIlEEpYDnbfDYXY/Cy+qBxjQA+B5oBJ/VZdCU='
WHERE
key_id = '143d69fd13ee93eb2b720be18bf562de55ee10920a58ebd894e2f91d90158811'
AND (
token = '4s7j/JBIlEEpYDnbfDYXY/Cy+qBxjQA+B5oBJ/VZdCU='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)