UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 300,
token = 'rWYc72KLEwK5mNzWihFIwZ7utpDbtS/N4L2Eg9oBKzo='
WHERE
key_id = '9d7578d558e402e4ba6ab9781d5f9991c91d72d091db20b90f4126eca2edb991'
AND (
token = 'rWYc72KLEwK5mNzWihFIwZ7utpDbtS/N4L2Eg9oBKzo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)