UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'RTe16cmfbPSwYRjnHeutLXL47N6mxs/4BUJAYC1HUgw='
WHERE
key_id = '7e43b66eb475c15200d4a74044432eacb90ededecaaacd823ad722edff03c281'
AND (
token = 'RTe16cmfbPSwYRjnHeutLXL47N6mxs/4BUJAYC1HUgw='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)