UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'aVYBfnW9BBLwUzWZo86pkujX/IVNjln3Q2VPQ0ZaQI0='
WHERE
key_id = 'e4ac71d5945031d76eb68624d1046fe775b8380cfaea6dc0b278867cae491abe'
AND (
token = 'aVYBfnW9BBLwUzWZo86pkujX/IVNjln3Q2VPQ0ZaQI0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)