UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'u2r2HPNLCUzPsQ5KOUaI5CzeEXBam36g2qD/wmjWQH8='
WHERE
key_id = '96bad1489cc202369c9c5216d26a641fc0db125e968c68fa5aca9ba6b43389a5'
AND (
token = 'u2r2HPNLCUzPsQ5KOUaI5CzeEXBam36g2qD/wmjWQH8='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)