UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '4WjQmLWn9hXWS0tSX/nTfawSrywaO2UNVHmVKlubQPQ='
WHERE
key_id = 'f2610de0b160e126e372314a8a9747407196e433812969df7e1f1fa644a92bc3'
AND (
token = '4WjQmLWn9hXWS0tSX/nTfawSrywaO2UNVHmVKlubQPQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)