UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'lbqvoEo+U1TTyBgTtPjqRSsOSgov6s8hydD+F9fpUnQ='
WHERE
key_id = '33834b85ce4439e09f213bf41e513c33080ba3a05472cec8a3ca51d11d58e49b'
AND (
token = 'lbqvoEo+U1TTyBgTtPjqRSsOSgov6s8hydD+F9fpUnQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)