UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '2Xq26GQXNr76X2Sgl4DBmOLGB67be1+ORGhrKnrUB0M='
WHERE
key_id = '101d9504074a3d674d7eb88abcc282ffc9b71fd393d392ebd4acea6ad6e66c73'
AND (
token = '2Xq26GQXNr76X2Sgl4DBmOLGB67be1+ORGhrKnrUB0M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)