UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'I+EbHmuEd3uOxt8mKuhHViAPCPBXQRPx+RI6adhGC1I='
WHERE
key_id = '76e17753e68004163fa9d935802a92ac5ef914bca285ee255130f7060f4c7187'
AND (
token = 'I+EbHmuEd3uOxt8mKuhHViAPCPBXQRPx+RI6adhGC1I='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)