UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'kjUvluMdREBbYpdglGBss0l1Y69/dZDxsyb9hpqfWbg='
WHERE
key_id = 'abe3af4c32271c92327ffa9723ab1272393ea58bd34bf09cb6d40fc13623cc56'
AND (
token = 'kjUvluMdREBbYpdglGBss0l1Y69/dZDxsyb9hpqfWbg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)