UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'eaUBpBbvi2yUsiBZCeAfKreOfRLi/CFwnKu2/+sxCQo='
WHERE
key_id = '46b31e7f41a2f0b033948a0dcd44a1c88dbe0f85cd90215f492eb26c7fb21bd9'
AND (
token = 'eaUBpBbvi2yUsiBZCeAfKreOfRLi/CFwnKu2/+sxCQo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)